Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

The Ten Commandments

Name: Anonymous 2014-03-27 19:28


The First Commandment
When recurring on a list of atoms, lat, ask two questions about it: (null? lat) and else.
When recurring on a number, n, ask two questions about it: (zero? n) and else.
When recurring on a list of S-expressions, I, ask three question about it: (null? I), (atom? (car I)), and else.

The Second Commandment
Use cons to build lists.

The Third Commandment
When building a list, describe the first typical element, and then cons it onto the natural recursion.

The Fourth Commandment
Always change at least one argument while recurring. When recurring on a list of atoms, lat, use (cdr lat). When recurring on a number, n, use (sub1 n). And when recurring on a list of S-expressions, I, use (car I) and (cdr I) if neither (null? I) nor (atom? (car I)) are true.
It must be changed to be closer to termination. The changing argument must be tested in the termination condition: when using cdr, test termination with null? and when using sub1, test termination with zero?.

The Fifth Commandment
When building a value with + ,always use 0 for the value of the terminating line, for adding 0 does not change the value of an addition.
When building a value with *, always use 1 for the value of the terminating line, for multiplying by 1 does not change the value of a multiplication.
When building a value with cons, always consider () for the value of the terminating line.

The Sixth Commandment
Simplify only after the function is correct.

The Seventh Commandment
Recur on the subparts that are of the same nature:
• On the sublists of a list.
• On the subexpressions of an arithmetic expression.

The Eighth Commandment
Use help functions to abstract from representations.

The Ninth Commandment
Abstract common patterns with a new function.

The Tenth Commandment
Build functions to collect more than one value at a time.

Name: Anonymous 2014-03-27 19:29

The Five Rules

The Law of Car
The primitive car is defined only for nonempty lists.

The Law of Cdr
The primitive cdr is defined only for nonempty lists. The cdr of any non-empty list is always another list.

The Law of Cons
The primitive cons takes two arguments. The second argument to cons must be a list. The result is a list.

The Law of Null?
The primitive null? is defined only for lists.

The Law of Eq?
The primitive eq? takes two arguments. Each must be a non-numeric atom.

Name: Anonymous 2014-03-27 19:43

sheeeeeeit

Name: Anonymous 2014-03-27 20:33

this is far too jewish for my taste

Name: Anonymous 2014-03-28 0:01

>>4
sage
pedo pls

Name: Anonymous 2014-03-28 9:22

>>5
>le /pedorider/ admin

Name: Anonymous 2014-03-29 0:01

>>6
>le pedophile criticism

Name: Anonymous 2014-03-29 5:21

>>7
goy hating kike detected

Name: Anonymous 2014-03-29 8:30

>>7
>le /pedorider/ admin

Name: Anonymous 2014-03-29 9:15

>>9
hax my anus

Name: Anonymous 2014-03-29 20:27

>>9
>le pedophile criticism

Name: Anonymous 2014-03-29 21:02

>>11
>le /pedorider/ admin

Name: Anonymous 2014-03-30 1:15

>>4
Jews don't hold a monopoly on commandments. It's quite legitimate for you to make up your own commandments for your own life.

Name: Anonymous 2014-03-30 2:19

Now the sage pedo is samefagging. This is a new low.

Name: Anonymous 2014-03-30 5:44

>>13
>le pedophile sage

Name: Anonymous 2014-03-30 13:53

>>13
Yes we do. And you are a Nazist goy who denies the reality of the Holocaust! You owe me money now, goy.

Name: Anonymous 2014-03-30 14:12

>le /pedorider/ admin

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List