Is there any benefit in calling Stream.new(enum)? All streams are enums and
not all streams are Stream, so nowhere you should be checking for Stream in
particular.

On Tue, Jul 23, 2024 at 23:00 Robert Dober <robert.do...@gmail.com> wrote:

> Hi there
>
> for eternity (there was no life before Elixir, right?) I was creating
> streams from enumerables with
>
> -  Stream.map(enum, &(&1))
>
> trying to find something better I found, somethoing worse, I believe
>
> - Stream.concat(enum, [])
>
> and, please forgive me, I wont do it again...
>
> - %Stream{enum: enum}
>
>
> I would gladly provide a PR for implementing Stream.new/1 if so desired.
>
> KR
> Robert
>
> --
> 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 elixir-lang-core+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elixir-lang-core/7b9cab1c-37fe-4cce-90f7-cd81c3835b65n%40googlegroups.com
> <https://groups.google.com/d/msgid/elixir-lang-core/7b9cab1c-37fe-4cce-90f7-cd81c3835b65n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 elixir-lang-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4LEcHEgdmmhCq5S4jk2LiX9Ceu6FNPdHxJ%3DgBuatq5VVA%40mail.gmail.com.

Reply via email to