Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
22
Task/Extend-your-language/Min/extend-your-language.min
Normal file
22
Task/Extend-your-language/Min/extend-your-language.min
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
(
|
||||
:none :two :one :both -> :r2 -> :r1
|
||||
(
|
||||
((r1 r2 and)(both))
|
||||
((r1)(one))
|
||||
((r2)(two))
|
||||
((true)(none))
|
||||
) case
|
||||
) :if2
|
||||
|
||||
(3 4 >) (0 0 ==)
|
||||
("both are true")
|
||||
("the first is true")
|
||||
("the second is true")
|
||||
("both are false")
|
||||
if2 puts! ;the second is true
|
||||
|
||||
;compare to regular if
|
||||
(4 even?)
|
||||
("true")
|
||||
("false")
|
||||
if puts! ;true
|
||||
Loading…
Add table
Add a link
Reference in a new issue