Open ilyash opened 2 years ago
After implementing this. The following should work:
Dir('.').each(F(entry) {
...
})
for entry in Dir('.') {
...
}
See:
Iter.ngs
dir()
function in stdlib.ngs
Notes:
Iter(d:Dir)
is implemented, implementing each()
should be trivial as roughly: F each(d:Dir, cb:Fun) d.Iter().each(cb)
(not tested)I am on it
... which should iterate over Path objects in that directory