Add bool function to mimic Python semantics.
This commit is contained in:
parent
06b81914eb
commit
c4c6ece6d2
|
|
@ -908,7 +908,6 @@ S_pop = Symbol('pop')
|
||||||
S_step = Symbol('step')
|
S_step = Symbol('step')
|
||||||
S_times = Symbol('times')
|
S_times = Symbol('times')
|
||||||
S_swaack = Symbol('swaack')
|
S_swaack = Symbol('swaack')
|
||||||
S_truthy = Symbol('truthy')
|
|
||||||
|
|
||||||
|
|
||||||
@inscribe
|
@inscribe
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
-- == 1 -
|
-- == 1 -
|
||||||
++ == 1 +
|
++ == 1 +
|
||||||
|
? == dup bool
|
||||||
anamorphism == [pop []] swap [dip swons] genrec
|
anamorphism == [pop []] swap [dip swons] genrec
|
||||||
app1 == grba infrst
|
app1 == grba infrst
|
||||||
app2 == [grba swap grba swap] dip [infrst] cons ii
|
app2 == [grba swap grba swap] dip [infrst] cons ii
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue