Use ## to create sections (Learn more)
(define (sum values)
(foldr + 0 values))
(define (best vals-1 vals-2 target)
(if (< (abs (- target (sum vals-1)))
(abs (- target (sum vals-2))))
(define (closest values target)
(cond [(= 1 (length values))
[(= 0 target)
(future (λ () (closest (rest values) target)))]
(future (λ () (closest (rest values) (- target (first values)))))])
(best (touch wout-first) (cons (first values) (touch with-first)) target))]))
Share the private access URL responsibly.
Anyone will be able to find and view this paste. Google will index it.
All that is necessary for the triumph of evil is that good men do nothing. Do something.