From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-users-return-23720-ml=inbox.vuxu.org@zsh.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 53133aa0 for ; Thu, 25 Oct 2018 18:55:30 +0000 (UTC) Received: (qmail 6332 invoked by alias); 25 Oct 2018 18:55:18 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23720 Received: (qmail 5146 invoked by uid 1010); 25 Oct 2018 18:55:18 -0000 X-Qmail-Scanner-Diagnostics: from mail-lf1-f41.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.167.41):SA:0(-1.9/5.0):. Processed in 0.75432 secs); 25 Oct 2018 18:55:18 -0000 X-Envelope-From: jesper.nygards@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=4SHsoOT+IZHfypY0ZJSe9Yegt1sza12poBWfVC91qTo=; b=nAyerqetZlgHiIqGwdmBjyQS7TUmO/hC+LgeY+sSGdf5fxbv0XAzDXs4MiMnJ7fYIh C50xO0ybfuIAuD2KZ4lMxHUWhAi87Z6JL87bRA0FxX5dPuHGGPF1GnJ4+ZUH359VTiGa ZzeWBHOcaNMNf+g39QQ0BH1UNeUeZsunTcUCNVTISXvy3SuUK3HC9UF8YXIezREohfW/ 9YuXsriSMy7Tb8KUWaH5OXFa8spfgYn0G81nJ5cYMqhX43aV3Qom3V5p9rOBuKS0ntFe JVguVW3f8k7mGbPIr3G4iSmcly9WKOODwipJEWnPeH1bl8mVxOvlHioYqnzj2NbsmpAt 7i8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=4SHsoOT+IZHfypY0ZJSe9Yegt1sza12poBWfVC91qTo=; b=iXP/+8WyFelqtfGkwo6IMIRRazNsfN3wr3CXSz6IJ2C7rhJ4widaHTfV8R0I/77xR9 YgsFg7bg3Ksw9B568m7uZNn9HOPxtTpVTAb1oFkC/NwOItlPni1m/tcugjM7m5l/REE6 h77W/oF0bSbT1LRYUapESzOD0pltIcq7Z5/8PJ/8ouNZaOgzg9S2Y+ijyldl4hERvPJj j3i6JJrUNqw3ZwWqopD/JEB53HhbEdMcP60mU7wb/vGf8JG24B570EqZyhx0mDgC8iKV wweiutOslRCoF8sivNrEVq9qrav18h4DhuyCp62hgchjWjiC+iMvVD1BsOZykKde2JzO 54sQ== X-Gm-Message-State: AGRZ1gKS2/ttZsZxZT9Y8+GW4QSKhTdoIoosiUaFpCjn001VjGVJ2j7N MAuuiDjrkOk5E9nNAdnASP+bbp472QnkSr4A8ZpoYw== X-Google-Smtp-Source: AJdET5d0cqaL3/4bmVt+qw86OM6nBxkKeRD3LIflmxi5J5OQ878W72MNt1B7D+K0sw3vtZJp/91JjQMNREgQZnyvExE= X-Received: by 2002:a19:ddd3:: with SMTP id w80mr253664lfi.133.1540493713356; Thu, 25 Oct 2018 11:55:13 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?Q?Jesper_Nyg=C3=A5rds?= Date: Thu, 25 Oct 2018 20:55:02 +0200 Message-ID: Subject: Re: Filtering array on index To: Zsh Users Content-Type: multipart/alternative; boundary="000000000000903be005791224ec" --000000000000903be005791224ec Content-Type: text/plain; charset="UTF-8" Thank you. Nice examples. I hadn't thought about order, and in fact it's not a problem in my use case. I guess I'll have resign myself to using a loop. I was dreaming along the lines of "a[e::]=()", but no luck. Although I understand the reason why zparseopts is designed this way, I've always found it a bit cumbersome that there is no way to only get the arguments to a possibly repeated flag into an array. --000000000000903be005791224ec--