OSDN Git Service

Another definition for while.
authorSimon Forman <sforman@hushmail.com>
Fri, 6 Jul 2018 21:19:00 +0000 (14:19 -0700)
committerSimon Forman <sforman@hushmail.com>
Fri, 6 Jul 2018 21:19:00 +0000 (14:19 -0700)
joy/library.py

index bedad4c..ab9982f 100644 (file)
@@ -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