Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Extend-your-language/Arturo/extend-your-language.arturo
Normal file
12
Task/Extend-your-language/Arturo/extend-your-language.arturo
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
if2: function [cond1 cond2 both one two none][
|
||||
case []
|
||||
when? [and? cond1 cond2] -> do both
|
||||
when? [cond1] -> do one
|
||||
when? [cond2] -> do two
|
||||
else -> do none
|
||||
]
|
||||
|
||||
if2 false true [print "both"]
|
||||
[print "only first"]
|
||||
[print "only second"]
|
||||
[print "none"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue