The docstring for map! says "destination must be at least as large as the smallest collection." But this fails for BitVectors:

julia> a = falses(3)
3-element BitVector:
 0
 0
 0

julia> map!(!, a, BitVector([0, 1]))
ERROR: DimensionMismatch: sizes of dest and A must match

julia> map!(&, a, BitVector([0, 1]), BitVector([1, 1]))
ERROR: DimensionMismatch: sizes of dest, A, and B must all match
0
© 2022 pullanswer.com - All rights reserved.