Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,22 @@
|
|||
go =>
|
||||
Map = new_map([1=one,2=two,3=three,4=four]),
|
||||
foreach(K=V in Map)
|
||||
println(K=V)
|
||||
end,
|
||||
nl,
|
||||
|
||||
println(keys=Map.keys),
|
||||
foreach(K in Map.keys.sort)
|
||||
println(K=Map.get(K))
|
||||
end,
|
||||
nl,
|
||||
|
||||
println(values=Map.values),
|
||||
foreach(V in Map.values.sort)
|
||||
% This works but gets a warning: nonlocal_var_in_iterator_pattern
|
||||
% println(V=[K : K=V in Map])
|
||||
|
||||
% No warning:
|
||||
println(V=[K : K=V1 in Map,V1 == V])
|
||||
end,
|
||||
nl.
|
||||
Loading…
Add table
Add a link
Reference in a new issue