OSDN Git Service

Add bool function to mimic Python semantics.
authorSimon Forman <sforman@hushmail.com>
Tue, 16 Jul 2019 15:41:28 +0000 (08:41 -0700)
committerSimon Forman <sforman@hushmail.com>
Tue, 16 Jul 2019 15:41:28 +0000 (08:41 -0700)
joy/library.py
thun/defs.txt

index eb911bb..e6920af 100644 (file)
@@ -908,7 +908,6 @@ S_pop = Symbol('pop')
 S_step = Symbol('step')
 S_times = Symbol('times')
 S_swaack = Symbol('swaack')
-S_truthy = Symbol('truthy')
 
 
 @inscribe
index c2c4a5c..741ba8a 100644 (file)
@@ -1,5 +1,6 @@
 -- == 1 -\r
 ++ == 1 +\r
+?  == dup bool\r
 anamorphism == [pop []] swap [dip swons] genrec\r
 app1 == grba infrst\r
 app2 == [grba swap grba swap] dip [infrst] cons ii\r