TL;DR: this has several virtues:
- Unifies Tuple and List access and replacement
- Sequential.seek/2 inherently implies that previous Enum functions will
iterate fully over the whole enumerable
- Countable infinities have an opportunity to raise on negative index access
- Paves the way for a cacheable enumerable Stream.sequence/1 function that
takes an enumerable and allows the user to flag an otherwise
destructive-on-read stream as a countable infinity where values might be
re-accessed, allowing it to enumerate the stream and cache values on access
- Paves the way for a set of Sequence.xxx/0 functions that procure useful
Stream.sequences like Sequence.primes/0 and Sequence.fibonacci/0
- Paves the way for Sequence.product/{1,2} functions that take the
cartesian product of possibly infinite, but countable streams
--
You received this message because you are subscribed to the Google Groups
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elixir-lang-core/3a734956-d07f-4579-a604-a715ac25db02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.