Beginnings of loops
This commit is contained in:
@@ -8,7 +8,7 @@ foo <- ->
|
||||
bar()
|
||||
baz()
|
||||
# functions with block statements
|
||||
oo <- x -> y -> x * y + 7 ## Multiple argument functions
|
||||
foo <- x -> y -> x * y + 7 ## Multiple argument functions
|
||||
if test?()
|
||||
do-something()
|
||||
elif other-test?()
|
||||
@@ -23,3 +23,8 @@ else
|
||||
if second-test?()
|
||||
do-a-real-bad-thing()
|
||||
## Nested blocks
|
||||
|
||||
i <- 1
|
||||
loop until i > 10
|
||||
print(i)
|
||||
i <- 1
|
||||
|
||||
Reference in New Issue
Block a user