Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,3 @@
(defn addN [n]
(fn [x]
(+ x n)))

View file

@ -0,0 +1,6 @@
=> (setv add2 (addN 2))
=> (add2 7)
9
=> ((addN 3) 4)
7

View file

@ -0,0 +1,13 @@
procedure main(A)
add2 := addN(2)
write("add2(7) = ",add2(7))
write("add2(1) = ",add2(1))
end
procedure addN(n)
return makeProc{ repeat { (x := (x@&source)[1], x +:= n) } }
end
procedure makeProc(A)
return (@A[1], A[1])
end