repositories
/
cc1516.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
start with sem
[cc1516.git]
/
examples
/
example.spl
diff --git
a/examples/example.spl
b/examples/example.spl
index
b4efb27
..
ee36ff3
100644
(file)
--- a/
examples/example.spl
+++ b/
examples/example.spl
@@
-2,6
+2,11
@@
Three ways to implement the f acto rial function in SPL.
First the recursive version .
*/
Three ways to implement the f acto rial function in SPL.
First the recursive version .
*/
+var r = 1;
+var facN = 1;
+var ok = True;
+
+
facR(n) :: Int -> Int {
if (n < 2) {
return 1;
facR(n) :: Int -> Int {
if (n < 2) {
return 1;