On Fri, Jul 10, 2015 at 10:45 PM, Pierpaolo Bernardi
<olopie...@gmail.com> wrote:
> If I understand correctly the spec, this should do what you ask?

which, fixing the typo, becomes:

(define (validate-ranges value-list low-list high-list)
  (for/fold ((failures 0))
            ((low (in-list low-list))
             (high (in-list high-list)))
    (for/fold ((failures 0))
              ((value (in-list value-list)))
      (if (<= low value high)
        failures
        (add1 failures)))))

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

Reply via email to