This also gives us a feasible way to implement Access for non_neg_integer 
values on Sequences.

On Saturday, July 22, 2017 at 12:03:55 AM UTC-7, [email protected] wrote:
>
> 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/7aede0a6-4d1f-4802-88e2-06c6de577a77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to