-
Notifications
You must be signed in to change notification settings - Fork 15
expand
Mahmoud Ben Hassine edited this page Nov 21, 2015
·
4 revisions
Replaces tabs with spaces in a stream of Strings.
N/A
Stream<String> stream = Stream.of("a\tb", "b\t\tc");
UnixStream.unixify(stream)
.expand()
.to(stdOut()); // prints "a b", "b c"
// Or
UnixStream.from(stream)
.pipe(expand())
.to(stdOut()); // prints "a b", "b c"
// Or
stream
.map(Functions.expand())
.forEach(System.out::println); // prints "a b", "b c"
UnixStream is created with passion by Mahmoud Ben Hassine