-
Notifications
You must be signed in to change notification settings - Fork 15
tail
Mahmoud Ben Hassine edited this page Nov 8, 2015
·
3 revisions
Keeps the X last elements from a stream.
Name | Type | Mandatory | Default |
---|---|---|---|
size | int | No | 10 |
Stream<String> stream = Stream.of("a", "b");
UnixStream.unixify(stream)
.tail(1)
.to(stdOut()); // prints "b"
// Or
UnixStream.from(stream)
.pipe(tail(1))
.to(stdOut()); // prints "b"
UnixStream is created with passion by Mahmoud Ben Hassine