Test on each value of a vector

all(<(1), D) works.

If you want to write an explicit loop, you would want something like:

for d in D
    if d ≥ 1
        return false
    end
end
return true
3 Likes