A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
|
|
@ -0,0 +1,6 @@
|
|||
var i := 2
|
||||
while (i <= 8) {
|
||||
print(`$i, `)
|
||||
i += 2
|
||||
}
|
||||
println("who do we appreciate?")
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
def stepRange(low, high, step) {
|
||||
def range {
|
||||
to iterate(f) {
|
||||
var i := low
|
||||
while (i <= high) {
|
||||
f(null, i)
|
||||
i += step
|
||||
}
|
||||
}
|
||||
}
|
||||
return range
|
||||
}
|
||||
|
||||
for i in stepRange(2, 9, 2) {
|
||||
print(`$i, `)
|
||||
}
|
||||
println("who do we appreciate?")
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
for i ? (i %% 2 <=> 0) in 2..8 {
|
||||
print(`$i, `)
|
||||
}
|
||||
println("who do we appreciate?")
|
||||
Loading…
Add table
Add a link
Reference in a new issue