-
Notifications
You must be signed in to change notification settings - Fork 15
Mahmoud Ben Hassine edited this page Oct 13, 2015
·
3 revisions
Count words or lines in a stream.
Name | Type | Mandatory | Default |
---|---|---|---|
type | WordCount.Option | No | WordCount.Option.W |
Stream<String> stream = Stream.of("a", "b c");
UStream.unixify(stream)
.wc()
.to(stdOut()); // prints 3
// Or
UStream.from(stream)
.pipe(wc(L))
.to(stdOut()); // prints 2
UnixStream is created with passion by Mahmoud Ben Hassine