Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Hash-from-two-arrays/Ring/hash-from-two-arrays.ring
Normal file
14
Task/Hash-from-two-arrays/Ring/hash-from-two-arrays.ring
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# Project : Hash from two arrays
|
||||
|
||||
list1="one two three"
|
||||
list2="1 2 3"
|
||||
a = str2list(substr(list1," ",nl))
|
||||
b = str2list(substr(list2," ",nl))
|
||||
c = list(len(a))
|
||||
for i=1 to len(b)
|
||||
temp = number(b[i])
|
||||
c[temp] = a[i]
|
||||
next
|
||||
for i = 1 to len(c)
|
||||
see c[i] + " " + i + nl
|
||||
next
|
||||
Loading…
Add table
Add a link
Reference in a new issue