zsh-workers
 help / color / mirror / code / Atom feed
From: "Lawrence Velázquez" <vq@larryv.me>
To: zsh-workers@zsh.org
Cc: "Mikael Magnusson" <mikachu@gmail.com>
Subject: Re: RFC PATCH: Sketch at :@ subscripting
Date: Sat, 27 Mar 2021 15:41:47 -0400	[thread overview]
Message-ID: <bb9c40f1-30a7-40fe-aba5-1d30f0856a08@www.fastmail.com> (raw)
In-Reply-To: <20201218131815.25999-1-mikachu@gmail.com>

On Fri, Dec 18, 2020, at 8:18 AM, Mikael Magnusson wrote:
> As the subject says, this is in a very early idea stage, but it does 
> work for basic cases at least.
> 
> The idea is that you can do this:
> % typeset -a somearray=( 'data here' 'some words' etc etc 1 2 3 4 ) idx=(1 3 5)
> % echo ${somearray:@idx}
> data here etc 1
> 
> The way it currently works also lets you do this:
> % typeset -a somearray=( 'data here' 'some words' etc etc 1 2 3 4 ) 
> idx=( '(r)<->' '(I)etc' )
> % echo ${somearray:@idx}
> 1 4
> 
> Not decided on if that's desirable :).

Any further feedback on this?

vq


      parent reply	other threads:[~2021-03-27 19:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-18 13:18 Mikael Magnusson
2020-12-19  9:13 ` Stephane Chazelas
2021-03-27 20:27   ` Bart Schaefer
2021-04-03 19:48     ` Lawrence Velázquez
2021-04-04 17:30       ` Daniel Shahaf
2021-04-10 20:38         ` Lawrence Velázquez
2021-04-10 21:59           ` Bart Schaefer
2021-04-13 11:54             ` Daniel Shahaf
2021-04-13 21:25               ` Bart Schaefer
2021-03-27 19:41 ` Lawrence Velázquez [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bb9c40f1-30a7-40fe-aba5-1d30f0856a08@www.fastmail.com \
    --to=vq@larryv.me \
    --cc=mikachu@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).