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

Re: cross-product array function?



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