all?

check if all values in given block are true


Parameters

all? conditions :block

Returns

  • :logical

Examples

copy
if all? @[2>1 "DONE"=upper "done" true] -> print "yes, all are true" ; yes, all are true

copy
print all? @[true false true true] ; false

copy
all? [] ; => true

Related