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
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