fix: README -> README.md
This commit is contained in:
parent
43e68af625
commit
99b0a6292c
756 changed files with 323753 additions and 71 deletions
11
ta6ob/examples/fact.ss
Normal file
11
ta6ob/examples/fact.ss
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
;;; simple factorial function
|
||||
|
||||
;;; it is interesting to change the 'lambda' into 'trace-lambda'
|
||||
;;; or simply type (trace fact) before running fact to observe
|
||||
;;; the nesting of recursive calls.
|
||||
|
||||
(define fact
|
||||
(lambda (x)
|
||||
(if (zero? x)
|
||||
1
|
||||
(* x (fact (1- x))))))
|
||||
Reference in a new issue