Skip to content
Mahmoud Ben Hassine edited this page Oct 13, 2015 · 4 revisions

expand

Synopsis

Replaces tabs with spaces in a stream of Strings.

Parameters

N/A

Example

Stream<String> stream = Stream.of("a\tb", "b\t\tc");

UStream.unixify(stream)
   .expand()
   .to(stdOut()); // prints "a b", "b  c"

// Or

UStream.from(stream)
   .pipe(expand())
   .to(stdOut()); // prints "a b", "b  c"
Clone this wiki locally