I’m totally spacing out — is there a function that will check to see if there is a non-#f value is in a list?
i remember it vividly but forget what its called
for/or can do what you want
or filter+identity
(ormap values lst)
?
for whatever reason… I never reach for ormap or andmap
dunno why… but I like the for/* functions better
I find the for loops syntactically more heavyweight than their function equivalents… and I generally have the philosophy to avoid a macro when a function will do. :)
those don’t ring a bell, but looks like they’d get the job done >:) thank you!!
sometimes the for loops are better when you have a large or complex body, or if you use the other features for
provides, like #:when
, #:unless
, #:break
, or the sequence functions.
there’s also any
in srfi/1
any
in srfi/1
is the same as ormap
yup