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

selecting elements in array



Hi all,

How do I select elements with indices that are multiples of 3, in an array? For example, I have,

list=( 123 native Terminal 456 native Excel 789 native X11 )

and would like to select,

Terminal Excel X11

for compadd.  Help is much appreciated.

Wataru Kagawa



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