-
Notifications
You must be signed in to change notification settings - Fork 15
Mahmoud Ben Hassine edited this page Nov 8, 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");
UnixStream.unixify(stream)
.wc()
.to(stdOut()); // prints 3
// Or
UnixStream.from(stream)
.pipe(wc(L))
.to(stdOut()); // prints 2
UnixStream is created with passion by Mahmoud Ben Hassine