(rontolisp) docs
← Higher-order functions

some-fn

(some-fn p q...)

Answers a function returning the first truthy (p x) over the given predicates and its arguments, in the oracle's order: one to three predicates try the first three arguments predicate by predicate, and failing answer the last (p x) tried (false or nil); the arguments past three, and four or more predicates, fail with nil. As a value it takes one or more predicates.