Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

cross-product array function?



	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



Messages sorted by: Reverse Date, Date, Thread, Author