#Stream
3 notas · última:
Thinking about Stream and Enum in Terms of Function Composition
The post explains Enum and Stream as ways of composing functions in Elixir. Enum builds shortcuts on top of reduce, while Stream delays work by creating a collection-like transformation.
Problems dealing with Enumerable protocol
The thread says Enum.take and Enum.at still reduce the whole collection, so a Redis-backed API should expose explicit limit and offset. José Valim distinguishes database and in-memory behavior and suggests count and member? stay explicit too.
O mínimo que você deve saber de Java 8
Java 8 traz default methods, lambdas, method references e Streams, encurtando código com coleções e permitindo operações como filter, map, reduce e collect.
