In racket, the proc apply-or is needed. > (or #f 1 2 #f 3 4 #f) 1 > (apply or (list #f 1 2 #f 3 4 #f)) . or: bad syntax in: or > (define (apply-or lst) (foldr or #t lst)) . or: bad syntax in: or > (define (apply-or lst) (foldr (lambda (x y) (or x y)) #t lst)) > (apply-or (list #f 1 2 #f 3 4 #t)) 1 > (foldl (lambda (x y) (or x y)) #t (list #f 1 2 #t 3 4 #t)) #t
-- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

