Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,20 @@
|
|||
$a $= [a, b, c] # Char values
|
||||
$b $= [A\e, B\e, C\e] # Text values
|
||||
$c $= [1, 2, 3] # Int values
|
||||
|
||||
# Repeat loop
|
||||
$i
|
||||
repeat($[i], @$a) {
|
||||
fn.println(parser.op($a[$i] ||| $b[$i] ||| $c[$i]))
|
||||
}
|
||||
fn.println()
|
||||
|
||||
# Foreach loop with zip and reduce
|
||||
$ele
|
||||
foreach($[ele], fn.arrayZip($a, $b, $c)) {
|
||||
fn.println(fn.arrayReduce($ele, \e, fn.concat))
|
||||
}
|
||||
fn.println()
|
||||
|
||||
# Foreach function with combinator
|
||||
fn.arrayForEach(fn.arrayZip($a, $b, $c), fn.combB(fn.println, fn.combC3(fn.arrayReduce, fn.concat, \e)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue