You didn’t broadcast the &&. Importantly, you can’t broadcast the && until 1.7 (which is in beta stage). It’s trying to do a boolean comparison with the vector result of A .> -20. But it can only compare booleans.
This could lead to some errors, though, since it won’t error on numbers. Its a bit-wise operation.
julia> 5 & 6
4
map applies a function to each element of an iterator, collecting the result into a Vector. It’s a fundamental idiom in Julia, see ? map for more details.