ngs-lang / ngs

Next Generation Shell (NGS)
https://ngs-lang.org/
GNU General Public License v3.0
1.41k stars 43 forks source link

Implement Iter(Dir) and each(Dir) #475

Open ilyash opened 2 years ago

ilyash commented 2 years ago

... which should iterate over Path objects in that directory

ilyash-b commented 1 year ago

After implementing this. The following should work:

Dir('.').each(F(entry) {
  ...
})
for entry in Dir('.') {
  ...
}

See:

Notes:

antonio-pedro99 commented 1 year ago

I am on it