Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
11
Task/Hash-from-two-arrays/Lingo/hash-from-two-arrays.lingo
Normal file
11
Task/Hash-from-two-arrays/Lingo/hash-from-two-arrays.lingo
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
keys = ["a","b","c"]
|
||||
values = [1,2,3]
|
||||
|
||||
props = [:]
|
||||
cnt = keys.count
|
||||
repeat with i = 1 to cnt
|
||||
props[keys[i]] = values[i]
|
||||
end repeat
|
||||
|
||||
put props
|
||||
-- ["a": 1, "b": 2, "c": 3]
|
||||
Loading…
Add table
Add a link
Reference in a new issue