From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13055 invoked from network); 3 Feb 1998 19:53:51 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 3 Feb 1998 19:53:51 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id OAA11197; Tue, 3 Feb 1998 14:25:10 -0500 (EST) Resent-Date: Tue, 3 Feb 1998 14:24:44 -0500 (EST) From: Andrew Main Message-Id: <199802031926.TAA12962@taos.demon.co.uk> Subject: Re: cross-product array function? To: sweth@astaroth.nit.gwu.edu (Sweth Chandramouli) Date: Tue, 3 Feb 1998 19:26:18 +0000 (GMT) Cc: zsh-users@math.gatech.edu In-Reply-To: <19980203140851.04316@astaroth.nit.gwu.edu> from "Sweth Chandramouli" at Feb 3, 98 02:08:51 pm X-Loop: zefram@tao.co.uk X-Headers: in preparation X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"yHbGQ3.0.Nk2.xxsrq"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1309 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Sweth Chandramouli wrote: > is there a function in zsh to take two arrays/lists, and create a new >one that is their cross-product? in es (extensible shell), i could do > >foo="first second third"; >bar="word person base"; >echo foo^bar; foo=(first second third) bar=(word person base) echo $^foo$^bar -zefram