From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28518 invoked by alias); 24 Apr 2013 19:54:41 -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: X-Seq: 17770 Received: (qmail 3846 invoked from network); 24 Apr 2013 19:54:39 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.212.41 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:x-gm-message-state; bh=w/oV53mvPqITTlB2iG0w3qcPweSlNwa4Vgn1HMAqIjs=; b=KasATMTPF6BaZtAaCwIDf6TlkWEgsqbcnfpd1GFuYsRoK8R184mmTxNzkV1yw0Eyku wmo3r7kdH3ltI3Fk7Quwmfv4NDsPvd4XaU7bb3hVc53jee7NBGu6xFSk4tiIythKdAyn 5mIvtrLkv5YQdhFOgm7Iz+LakQEBTioaJC3IjHKyJw2pzfWeYkW918S5Zfl4OgcAnU+Q rLFnjKSo9ej39K63t1AU+XcsLrqvKA2s0MEeYSibroFUgneOrKSO4oZi0DTiZevvvOT3 0ZEel/XKCIfAGPWc1ZZh+jiX5Lq7XCXOQ7Zk8UDGPbqgd/RDUtqOMPMjoqFL6diXUho7 IJaQ== X-Received: by 10.220.88.145 with SMTP id a17mr25616411vcm.66.1366833274225; Wed, 24 Apr 2013 12:54:34 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <62F633CD-D335-4044-BE46-EFBBDA5F8922@luo.ma> References: <62F633CD-D335-4044-BE46-EFBBDA5F8922@luo.ma> From: thomasg Date: Wed, 24 Apr 2013 21:53:54 +0200 Message-ID: Subject: Re: How should I construct this? To: TJ Luoma Cc: Zsh-Users List Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQkRyBPCOh5FeaZc36+i5onMAzslWo5l/CP8uIImOi6ckcmVRM/aPX7Ea+MKsZ9+V0SeKieC On Wed, Apr 24, 2013 at 8:56 PM, TJ Luoma wrote: > > > On 24 Apr 2013, at 14:39, thomasg wrote: > >> What you want to use in a case like this are hashtables. >> Basically this is a special array type, defined like this: > > > Ooh, I _knew_ there had to be a way. > > Hashtables, eh? I've never used one of those before. Looking forward to > playing with that. Zsh calls this Associative Array btw., hashtable isn't technically correct I guess (even though it looks like one :) > (Have I mentioned that I've used zsh for ~20 years and feel like I'm only > using 0.001% of what it can do? Stuff like this is why!) Sometimes I think even the maintainers of zsh have to feel this way :) > Thanks again > > TjL >