On Mon, Sep 21, 2015 at 8:35 AM, Daniel Carrera <[email protected]> wrote:
> Hello,
>
> I have two boolean arrays and I am trying to obtain the boolean array
> resulting from a component-wise `AND`:
>
> julia> [true, true, false] .&& [false, true, true]
> ERROR: syntax: invalid identifier name "&&"
>
> julia> [true, true, false] .& [false, true, true]
> ERROR: type Array has no field &
>
>
> Can anyone figure out what I'm doing wrong? I was hoping that `.&` and `.&&`
> would apply the operation on a per-component basis. Help?
julia> [true, true, false] & [false, true, true]
3-element Array{Bool,1}:
false
true
false
>
> Cheers,
> Daniel.