I believe this pull request is about solving that problem: https://github.com/plt/racket/pull/928 Either through modifying `and` and `or`, or providing variations that can be used with apply and foldr (or other higher-order functions).
On Aug 6, 2015, at 10:09 AM, sagyo12341...@gmail.com wrote: > 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 racket-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- 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 racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.