title: Haskell - using Until on a list
body: <p>I've been trying to do a function that creates a list of n numbers ([1...n]) using an until. So far I haven't found any examples of until manipulating lists and I've been improvising:</p>
  
  <pre><code>sequence Int -&gt; [Int]
  sequence x = until (== x) (++ [ +1 ]) [1]
  </code></pre>
  
  <p>But keep getting the Syntax error in expression (unexpected token) error</p>
  
  <p>I know I could simply use a [1..n] to create the list, but I really want to make this work out. Thanks in advance for any help.</p>