June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
17
Task/Hash-from-two-arrays/Ring/hash-from-two-arrays.ring
Normal file
17
Task/Hash-from-two-arrays/Ring/hash-from-two-arrays.ring
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# Project : Hash from two arrays
|
||||
# Date : 2018/03/18
|
||||
# Author : Gal Zsolt [~ CalmoSoft ~]
|
||||
# Email : <calmosoft@gmail.com>
|
||||
|
||||
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