I am new to Haskell and I just encountered this problem/error.
I have not a single clue what's going on, also I am not really familiar using lists and defining them as (l:k)
... i don't really know what l and k are considered... l is an element and k is a list?
Anyways, I would appreciate someone explained to me these l and k things or maybe (l:t:k)
inside a function using list and maybe a way to write this simple delete function which, given that the element is inside the list, finds the first appearance of the desired element and deletes it, returning the new list.
delete :: Eq b => b -> [b] -> [b]
delete r (l:k)
| inside r k = [l]:delete(r k)
| otherwise = k