Open ChiCubed opened 2 years ago
julia> 1:10 |> MapCat(x -> x:10 |> TakeWhile(<=(5))) |> collect 5-element Vector{Int64}: 1 2 3 4 5
It seems like the TakeWhile's state is not reset between "iterations of the loop". If you collect the inner eduction, you get the expected behaviour.
It seems like the TakeWhile's state is not reset between "iterations of the loop". If you collect the inner eduction, you get the expected behaviour.