[Phix] Language Feature Request: For Each
- Posted by euphoric (admin) Dec 10, 2021
- 1565 views
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.