`filter` with `eachrow`

I believe this is possible with Iteration utilities · The Julia Language

using Base.Iterators
Iterators.filter( x-> x[1]>0.5, eachrow(A)) |> collect

or

Iterators.filter( x-> x[1]>0.5, eachrow(A)) |>
    xs -> mapreduce(transpose, vcat, xs)
1 Like