|
|
2 years ago | |
|---|---|---|
| include | 2 years ago | |
| stream-test | 6 years ago | |
| stream.xcodeproj | 2 years ago | |
| test | 2 years ago | |
| .clang-format | 5 years ago | |
| .gitignore | 5 years ago | |
| README.md | 5 years ago |
A lazily evaluated container stream library build around the concept of Java's Stream library.
A series of factory methods that allow the construction of streams from various input objects, such as containers, iterator ranges, and integer ranges.
A stream that only returns the elements of its source that match the given predicate. The predicate is lazily evaluated, meaning that each call to advance the iterator may make multiple calls to advance the underlying value.
Provides the ability to transform a stream from one type to another. Two different features are provided here: map() and flatmap().
Map takes a function T -> R and performs the transformation stream<T> -> stream<R>.
Flatmap takes a function T -> Container<R> and performs the transformation stream<T> -> stream<R>.
The fluent interface allows you to link together a stream with comprehensions using some simple primitives.
stream | functionstream || functionstream % predicatestream > container