Hi,
While using *filter* I noticed a different behavior between application of
the function on Array and Tuple.
While filtering on Array, the result is an Array, as stated in the
documentation. But when filtering a tuple, the result is an iterable Filter
object (in which case I guess I must use collect to get an Array).
I just would like to know if it's a normal behavior.
julia> filter(x -> x % 2 == 0, (1, 2, 3))
# ans = Filter{(Int64,Int64,Int64)}((anonymous function),(1,2,3))
julia> collect(ans)
# 1-element Array{Int64,1}:
# 2
julia> filter(x -> x % 2 == 0, [1, 2, 3])
# 1-element Array{Int64,1}:
# 2
Thanks in advance,
Rémi
NB: I use Julia compiled from the trunk today.