What do you mean by "convert enum to a stream"? All stream/enum functions 
accept any enumerable - in fact there’s no one thing you could call “a stream” 
- all could have a different representation. What’s important is how they 
implement the enumerable protocol.

Michał.

> On 27 Jul 2016, at 09:10, Robert Dober <[email protected]> wrote:
> 
> Hi list
> 
> I was just asking myself for the nth time, how come I need to write things 
> like
> 
>           ...
>           |> Stream.map(&(1))
> 
> 
> Did I completely miss out on my search for something like Enum.to_stream, or 
> does no such thing exist. In the latter case I might think it would be a nice 
> addition to Elixir.
> 
> Thx
> Robert
> --
> Non datemi consigli che so sbagliare da solo
> (Giuseppe Di Stefano)
> 
> 
> --
> You received this message because you are subscribed to the Google Groups 
> "elixir-lang-talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/elixir-lang-talk/CA%2Bvts6sULHteH%2B5VDS9Wijb600iFDojDiVZsjOP7HrjRMks0eA%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/elixir-lang-talk/CA%2Bvts6sULHteH%2B5VDS9Wijb600iFDojDiVZsjOP7HrjRMks0eA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-talk" 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-talk/55761584-F107-4CA2-BBA0-9D6DE71030A8%40muskala.eu.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to