title: Halving a list into sublists using pattern matching
body: <p>I am trying to get the output, given an input</p>
  
  <pre><code>&gt; halve [1,2,3,4,5,6]
  ([1,2,3],[4,5,6])
  </code></pre>
  
  <p>I have solved this problem using this approach: </p>
  
  <pre><code>halve xs = ((take s xs), (drop s xs))
      where
        s = (length xs) `div` 2
  </code></pre>
  
  <p>I am a beginner in Haskell and I want to learn how to solve this question using pattern matching? Thanks</p>