Is this a known and desirable result?
I just tested this in in v"1.1.0" and the result is a Bool.
From the Doc (v1.2): “Note that comparisons such as == operate on whole arrays, giving a single boolean answer. Use dot operators like .== for elementwise comparisons. (For comparison operations like < , only the elementwise .< version is applicable to arrays.)”
Julia v"1.2.0"
log.([1]) .< 0
> 1-element BitArray{1}:
> 0
log.([1; 1]) .< 0
> 2-element BitArray{1}:
> 0
> 0
log.([1, 1]) .< 0
> 2-element BitArray{1}:
> 0
> 0
[1, 1] .< [2, 2]
> 2-element BitArray{1}
> 1
> 1
whereas
log.((1, 1)) .< 0
> (false, false)
log.(1) .< 0
> false