Can Transducers.jl
deal with infinite iterator (like Iterators.countfrom()
) for lazy evaluation?
EDIT: It works as Underscores.jl
does as follows.
julia> Iterators.countfrom() |> Map(x -> 2x) |> TakeWhile(x -> x < 10) |> collect
4-element Array{Int64,1}:
2
4
6
8