2 ms·
> (bonus, you can use `foreach x [glob *.jpg] y [glob *.png]` to iterate on more than one list at once) I don't know about Elvish, but globs in bash aren't par
by Izkata 3y ago
> (bonus, you can use `foreach x [glob *.jpg] y [glob *.png]` to iterate on more than one list at once)
I don't know about Elvish, but globs in bash aren't part of the loop syntax, they're their own thing, so this also just works:
for x in *.jpg *.png
- BoingBoomTschak 3y agoThis just concatenates the lists, in Tcl (or CL's loop), you can iterate on multiple lists in parallel. Like Python's zip, but cleaner since you don't need said zip.