zsh-users
 help / color / mirror / code / Atom feed
From: Andrew Main <zefram@tao.co.uk>
To: sweth@astaroth.nit.gwu.edu (Sweth Chandramouli)
Cc: zsh-users@math.gatech.edu
Subject: Re: cross-product array function?
Date: Tue, 3 Feb 1998 19:26:18 +0000 (GMT)	[thread overview]
Message-ID: <199802031926.TAA12962@taos.demon.co.uk> (raw)
In-Reply-To: <19980203140851.04316@astaroth.nit.gwu.edu> 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


  reply	other threads:[~1998-02-03 19:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-02-03 19:08 Sweth Chandramouli
1998-02-03 19:26 ` Andrew Main [this message]
1998-02-03 19:51   ` Sweth Chandramouli
1998-02-03 20:00     ` Andrew Main
1998-02-03 20:59   ` Nate Johnston
1998-02-03 22:39     ` Sweth Chandramouli
1998-02-03 22:45     ` Thomas Köhler
1998-02-04  9:29     ` Andrew Main

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=199802031926.TAA12962@taos.demon.co.uk \
    --to=zefram@tao.co.uk \
    --cc=sweth@astaroth.nit.gwu.edu \
    --cc=zsh-users@math.gatech.edu \
    /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).