OSDN Git Service
(root)
/
joypy
/
Thun.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab8ec6c
)
Another definition for while.
author
Simon Forman
<sforman@hushmail.com>
Fri, 6 Jul 2018 21:19:00 +0000
(14:19 -0700)
committer
Simon Forman
<sforman@hushmail.com>
Fri, 6 Jul 2018 21:19:00 +0000
(14:19 -0700)
joy/library.py
patch
|
blob
|
history
diff --git
a/joy/library.py
b/joy/library.py
index
bedad4c
..
ab9982f
100644
(file)
--- a/
joy/library.py
+++ b/
joy/library.py
@@
-129,6
+129,9
@@
make_generator == [codireco] ccons
# ifte == [nullary] dipd swap branch
# genrec == [[genrec] cons cons cons cons] nullary swons concat ifte
+# Another definition for while. FWIW
+# while == over [[i] dip nullary] ccons [nullary] dip loop
+
##ccons == cons cons
##unit == [] cons
##second == rest first