-
Notifications
You must be signed in to change notification settings - Fork 15
trim
Mahmoud Ben Hassine edited this page Oct 13, 2015
·
4 revisions
Trims a String by removing trailing white spaces.
N/A
Stream<String> stream = Stream.of(" a ", " b c ");
UStream.unixify(stream)
.trim()
.to(stdOut()); // prints "a", "b c"
// Or
UStream.from(stream)
.pipe(dos2unix())
.to(stdOut()); // prints "a", "b c"
UnixStream is created with passion by Mahmoud Ben Hassine