zsh-users
 help / color / mirror / code / Atom feed
* cross-product array function?
@ 1998-02-03 19:08 Sweth Chandramouli
  1998-02-03 19:26 ` Andrew Main
  0 siblings, 1 reply; 8+ messages in thread
From: Sweth Chandramouli @ 1998-02-03 19:08 UTC (permalink / raw)
  To: ZSH Users

	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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~1998-02-04  9:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-02-03 19:08 cross-product array function? Sweth Chandramouli
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

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).