Sen descrición

Sam Jaffe 3b54624e64 refactor: take ownership of sentinel_iterator => common_iterator %!s(int64=2) %!d(string=hai) anos
external 3b54624e64 refactor: take ownership of sentinel_iterator => common_iterator %!s(int64=2) %!d(string=hai) anos
include 3b54624e64 refactor: take ownership of sentinel_iterator => common_iterator %!s(int64=2) %!d(string=hai) anos
stream-test 457827ddf8 Convert to GoogleTest %!s(int64=6) %!d(string=hai) anos
stream.xcodeproj e2fbca0232 fix: fix some iterator problems %!s(int64=2) %!d(string=hai) anos
test 3055d05e65 fix: duplicate instantiation %!s(int64=2) %!d(string=hai) anos
.clang-format 5468a8168f refactor: clang-format change %!s(int64=2) %!d(string=hai) anos
.gitignore 0d37362b9d Add a simple readme. %!s(int64=5) %!d(string=hai) anos
.gitmodules 42849290da refactor: implement stream::iterator using iterator::facade %!s(int64=2) %!d(string=hai) anos
README.md 0d37362b9d Add a simple readme. %!s(int64=5) %!d(string=hai) anos

README.md

Stream

A lazily evaluated container stream library build around the concept of Java's Stream library.

Constructs

Source Stream

A series of factory methods that allow the construction of streams from various input objects, such as containers, iterator ranges, and integer ranges.

Filter Stream

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.

Map Stream

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>.

Fluent Interface

The fluent interface allows you to link together a stream with comprehensions using some simple primitives.

  • Map Function: stream | function
  • Flatmap Function: stream || function
  • Filter Stream: stream % predicate
  • Collect Stream: stream > container