title: How can I multiply two lists by elements in Haskell?
body: <p>I want a function that gets two lists of Int and generate a list of lists, where each list is the result of the product of each element of the first list by the whole second list. Here's an example:</p>
  
  <ul>
  <li>Definition of the function : <code>multiplyElements :: [Int] -&gt; [Int] -&gt; [[Int]]</code></li>
  <li>What I want to do: </li>
  <li>List 1: <code>[1, 2, 3]</code> and List 2: <code>[4, 5, 6]</code></li>
  <li>Result: <code>[[4, 5, 6], [8, 10, 12], [12, 15, 18]]</code></li>
  </ul>
  
  <p>`</p>