9 lines
365 B
Text
9 lines
365 B
Text
beads 1 program 'Loop over multiple arrays simultaneously'
|
|
calc main_init
|
|
const
|
|
x = ['a', 'b', 'c']
|
|
y = ['A', 'B', 'C']
|
|
z = [1, 2, 3]
|
|
const largest = max(tree_hi(x), tree_hi(y), tree_hi(z))
|
|
loop reps:largest count:i //where u_cc defines what to use for undefined characters
|
|
log to_str(x[i], u_cc:' ') & to_str(y[i], u_cc:' ') & to_str(z[i], u_cc:' ')
|