Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

How to add string to end of each array element without loops



a=(1 2 3)
a=(foo$^a[@])

print -l "${(@n)a}"

foo1
foo2
foo3

I would like to get the following output instead:

1foo
2foo
3foo



Messages sorted by: Reverse Date, Date, Thread, Author