title: Making List of Lists Haskell
body: <p>i am trying to get pairs of coords and i have got this function that outputs: [9,0,9,1]....... etc</p>
  
  <pre><code>addVal :: Int -&gt; [Int] -&gt; [Int]
   addVal i [] = []
   addVal i (x:xs) =  i:x : addVal i xs
  </code></pre>
  
  <p>but i want the output to be a list of lists : [[9,0],[9,1]] </p>
  
  <pre><code>addVal :: Int -&gt; [Int] -&gt; [[Int]]
  addVal i [] = [[]]
  </code></pre>
  
  <p>how do i get it so the it will make each pair a list so i i can use it with my other functions to get the smallest of the pairs </p>