Implement 'max' and 'min' in Scheme

Issue #35 resolved
Katie Burke created an issue

max should the maximum of real1 real2 ...
min should return the minimum of real1 real2 ...
http://www.scheme.com/tspl4/objects.html#./objects:s107

This example should return 4.

(max 4 -7 2 0 -6)

Traceback (most recent call last):
File "stdin", line 1, col 2
RunTimeError: unbound variable 'max'

This example should return -7.

(min 4 -7 2 0 -6)

Traceback (most recent call last):
File "stdin", line 1, col 2
RunTimeError: unbound variable 'min'

Comments (2)

  1. Log in to comment