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

Re: array prepend



On Jan 14,  4:48pm, Oliver Kiddle wrote:
}
} >  	VAR[]=(this is prepended)
} >  	VAR[]+=(this is appended)
} >  	VAR+=(short for 'VAR[]+=')
} 
} That seems reasonably logical. Would the following be possible to prepend
} to an array element?
}   VAR[1][]="first"

If we were also to define var[] for scalars to allow prepend, then yes.



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