jerryj
2017-9-25 22:57:42

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?


jerryj
2017-9-25 22:57:57

i remember it vividly but forget what its called


zenspider
2017-9-25 22:58:12

for/or can do what you want


zenspider
2017-9-25 22:58:30

or filter+identity


lexi.lambda
2017-9-25 22:58:39

(ormap values lst)?


zenspider
2017-9-25 22:58:58

for whatever reason… I never reach for ormap or andmap


zenspider
2017-9-25 22:59:07

dunno why… but I like the for/* functions better


lexi.lambda
2017-9-25 22:59:47

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. :)


jerryj
2017-9-25 22:59:47

those don’t ring a bell, but looks like they’d get the job done >:) thank you!!


lexi.lambda
2017-9-25 23:00:34

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.


zenspider
2017-9-25 23:01:34

there’s also any in srfi/1


lexi.lambda
2017-9-25 23:02:39

any in srfi/1 is the same as ormap


zenspider
2017-9-25 23:08:03

yup