Say I have:
(def s1 [1 2 3 4 5])
(def s2 [1 2 3 4 5])
For every x in s1, I want to multiply it with every y in s2.
To clarify, I basically want the Cartesian product, so I don’t think map works here.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1 Answer