more scheme questions

Started by
9 comments, last by flangazor 18 years, 1 month ago
Quote:Original post by The Reindeer Effect
You are very unclear about what restrictions you have for the second problem. You asked that we use only 'sequences operators'. That basically means that we must construct the natural number system from lists.

Here's the best I could do:

*** Source Snippet Removed ***

I came to the same conclusion about having to recreate numerals using lambda calulus and didn't think the prof really wanted his students to do this on an exam. I also thought he wanted input/output in numerals (1, 2, 3...) instead of lists like ('(()), '(() ()), '(() () ())) so I gave up.

Nice work.
Quote:I have a feeling this is not the intent of your professor (or whomever gave you this assignment); it is likely that he wanted you to make use of Scheme's numerals. Well, too fucking bad. You should have written clear English you fucking troglodyte.
Crappy specifications are part of life. [grin]

This topic is closed to new replies.

Advertisement