title: How to remove an element from a list in Haskell?
body: <p>The function I'm trying to write should remove the element at the given index from the given list of any type.</p>
  
  <p>Here is what I have already done:</p>
  
  <pre><code>           delAtIdx :: [x] -&gt; Int -&gt; [x]
  
             delAtIdx x y = let g = take y x
                            in let h = reverse x
                            in let b = take (((length x) - y) - 1) h
                            in let j = g ++ (reverse b)
                            in j
  </code></pre>
  
  <p>Is this correct? Could anyone suggest another approach?</p>