[Phix] Language Feature Request: For Each

new topic     » topic index » view thread      » older message » newer message

How about a For...Each...End For?

for each key as string in {"one","two","three"} 
   ?key 
end for -- or next 
for each id as integer in {2,4,6} 
   ?key 
end for 
for each key as object in {"Hello",3,{1,2,3}} 
   ?key 
end for 
all_keys = getd_all_keys(myDict) 
for each key as string in all_keys 
   ?key 
   ?getd(key,myDict) 
end for 

Etc.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu