zsh-users
 help / color / mirror / code / Atom feed
From: Sweth Chandramouli <sweth@astaroth.nit.gwu.edu>
To: ZSH Users <zsh-users@math.gatech.edu>
Subject: cross-product array function?
Date: Tue, 3 Feb 1998 14:08:51 -0500	[thread overview]
Message-ID: <19980203140851.04316@astaroth.nit.gwu.edu> (raw)

	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;

	and the output would be the following list:
	
"firstword secondword thirdword firstperson secondperson thirdperson firstbase 
secondbase thirdbase"

	is there some similar function in zsh?
	
	tia,
	sweth.

-- 
"Countin' on a remedy I've counted on before
Goin' with a cure that's never failed me
What you call the disease
I call the remedy"  -- The Mighty Mighty Bosstones


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

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-02-03 19:08 Sweth Chandramouli [this message]
1998-02-03 19:26 ` Andrew Main
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=19980203140851.04316@astaroth.nit.gwu.edu \
    --to=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).