projects
/
lambda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b8a657
)
tweaked week3
author
Jim Pryor
<profjim@jimpryor.net>
Sat, 18 Sep 2010 21:50:17 +0000
(17:50 -0400)
committer
Jim Pryor
<profjim@jimpryor.net>
Sat, 18 Sep 2010 21:50:17 +0000
(17:50 -0400)
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
week3.mdwn
patch
|
blob
|
history
diff --git
a/week3.mdwn
b/week3.mdwn
index
a9ca3cd
..
9e67041
100644
(file)
--- a/
week3.mdwn
+++ b/
week3.mdwn
@@
-14,7
+14,8
@@
In OCaml, you'd define that like this:
In Scheme you'd define it like this:
- (letrec [(get_length (lambda (lst) (if (null? lst) 0 [+ 1 (get_length (cdr lst))] )) )]
+ (letrec [(get_length
+ (lambda (lst) (if (null? lst) 0 [+ 1 (get_length (cdr lst))] )) )]
... ; here you go on to use the function "get_length"
)