sicp-4-3-2
Posted on 2015-03-15 06:36:17 +0900
in SICP
Lisp
4.39
The answer will always be correct, but the efficiency would be different.
By putting the more restrictive in the front makes the branch cutting happens earlier.
4.40
4.41
permutations
function is the key point.
4.42
One important thing to note is, and
and or
is not a regular primitive function
in Scheme, classification is here, it must be dealt with separatly.
4.44