I'm having some complications with a piece of code I'm working on. I need the procedure to take number (list-of-numbers)
and return the minimum value between the two. So far I have this
(define (mini y lon)
(cond
[(empty? lon) y]
[else (min (first (foldr cons lon (list y))) (mini y (rest lon)))]))
and I can't figure out the reason why it's not working. Thanks in advance.