title: type signature for a function that makes a list of lists?
body: <pre><code>bundle :: Int -&gt; [a] -&gt; [[a]]
  bundle 0 _ = []
  bundle n (x:xs) = [x:bundle (n-1) xs]
  </code></pre>
  
  <p>My goal is to do something like this </p>
  
  <p><code>bundle 3 [1,2,3,4,5] = [[1,2,3]]</code></p>
  
  <p>The code is giving me the error </p>
  
  <pre><code>Couldn't match expected type ‘[a]’ with actual type ‘a’
    ‘a’ is a rigid type variable bound by
        the type signature for bundle :: Int -&gt; [a] -&gt; [[a]]
  </code></pre>