Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: prepend to array?
- X-seq: zsh-users 22755
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Anthony Heading <anthony@xxxxxxxx>, zsh-users@xxxxxxx
- Subject: Re: prepend to array?
- Date: Tue, 27 Jun 2017 03:14:46 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=n3U+L3 LeAZ/gSNAK5iKHOWH5mSf3rP84UHAk/UAgXnU=; b=WZ7aGf5XC4IKgSFnvanugA RKTb/PnSO8pTUccV9IhvIMWMeI3YTyQ3Sne29PTcExRrxG7uOs0fr8iN/5cuPSiB ckPKgjoIMjHybDn7yQVyyAyEEjHPOTvst9DZQi/AdLpWuCf0p9W7qHy6yQYek5QA JNgYQTO6JVactXt+WDl4s7crUmF4F0HSY26xVH7rcDo0jqTv9yk0gPulpQZktreA WaFJB+vcaFJltgCHN+bIV7/FaR8sjzjzqP8WK0zcYuYTmrACaKKoV2BAWnn61mHZ 14C5EyVnVpduwcy2NXS2trvTwtzKGt8lWUqTH3ktH/ACwhJFx8dUVc2nKLyexx9w ==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=n3U+L3 LeAZ/gSNAK5iKHOWH5mSf3rP84UHAk/UAgXnU=; b=oLQla7bIxuYT4bxm7biewA WxuYKhztLOYHbe7Rsafvrh7Q/oEUKd62lqy4Kq+QOgS80LAvZLLKclxwp9+KGFXW PyJTN8G29qWoRap7s2mxsIcwmiAuT7W1xWTe/R5D2GsBvgZBjBypG7sYIX0qytMK WazFNtNb0HjiviK8QAbHPln01+g/xmH8XgchBplOX9eaJIYox3gksdh1BsVfJ6OX /w8KRjq4mEs92Og4RXLKWgxb7ZPF6OSUED/O21UYeqA/SEho0m0t0WLU6nr4rU6C 839gZsyO3iglQ9rNoJYTSomcd3oRCRiEiVOxpHel6MSCxE3fvOfcVJGpNAhd+44A ==
- In-reply-to: <1498531390.3826134.1022304896.595BD87B@webmail.messagingengine.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <1498531390.3826134.1022304896.595BD87B@webmail.messagingengine.com>
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