Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: cross-product array function?
- X-seq: zsh-users 1309
- From: Andrew Main <zefram@xxxxxxxxx>
- To: sweth@xxxxxxxxxxxxxxxxxxxx (Sweth Chandramouli)
- Subject: Re: cross-product array function?
- Date: Tue, 3 Feb 1998 19:26:18 +0000 (GMT)
- Cc: zsh-users@xxxxxxxxxxxxxxx
- In-reply-to: <19980203140851.04316@xxxxxxxxxxxxxxxxxxxx> from "Sweth Chandramouli" at Feb 3, 98 02:08:51 pm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author