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

Re: prepend to array?



Anthony Heading wrote on Mon, 26 Jun 2017 22:43 -0400:
> % zsh -c 'x=(a b c); x[-999999]+=(vip); echo $x'
> vip a b c
> 
> Is there any more elegant way to prepend?

x[1,0]=(vip)



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