Okay, I don't know if anyone on here programs in scheme really, but I am going to post my updated code anyway in hopes that someone can help me. I will be so appreciative to anyone who can help me out with this!
Here is what I have right now:
(define find_min (lambda args
(display (min args))
)
)
(display (find_min (read)))
But I have a feeling this is not right, because I get an error when I run the procedure. The error says this:
min: expects argument of type <real number>; given (1)
So I think that args is not what I really want after lambda. I want integers, not just arguments, so is there a way to do that? Otherwise, does this look somewhat right for finding the minimum of the ints entered?
Thank you, again!
Reputation Points: 23
Solved Threads: 0
Junior Poster in Training
Offline 65 posts
since Feb 2008