mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
13 lines
217 B
Text
13 lines
217 B
Text
var str :="abcd";
|
|
|
|
var dict := dictionary;
|
|
for i:=1 to 4
|
|
dict.insert(str[i],i);
|
|
endfor
|
|
print("dict: "+dict);
|
|
// everything works fine untill now
|
|
|
|
for i:=1 to 4
|
|
print("i: "+i+"result: "+dict[str[i]]);
|
|
endfor
|
|
|