Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
|
|
@ -0,0 +1,6 @@
|
|||
a = {'a','b','c'}
|
||||
b = {'A','B','C'}
|
||||
c = {1,2,3}
|
||||
for i = 1,#c do
|
||||
io.write(a[i],b[i],c[i],'\n')
|
||||
end
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
;; Define the three series
|
||||
list1: [a b c]
|
||||
list2: [A B C]
|
||||
list3: [1 2 3]
|
||||
|
||||
;; Iterate over them in parallel by index
|
||||
repeat i length? list1 [
|
||||
;; pick returns the i-th element
|
||||
print rejoin [list1/:i list2/:i list3/:i]
|
||||
]
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
x =: 1, 2, 3, 4
|
||||
y =: 'a', 'b', 'c'
|
||||
\ create z as row with keys from -1 to 3
|
||||
z =: new row
|
||||
?# i =: from -1 upto 3
|
||||
z[i] =: i+4
|
||||
|
||||
?# i =: tuple x give keys
|
||||
print i, x[i], y[i], z[i]
|
||||
print ''
|
||||
?# i =: row z give keys
|
||||
print i, x[i], y[i], z[i]
|
||||
print ''
|
||||
?# i =: from 0 upto 4
|
||||
print i, x[i], y[i], z[i]
|
||||
Loading…
Add table
Add a link
Reference in a new issue