if i try to run this msall little code:
module Problem14 where
duplicate = foldl (\acc x -> acc ++ [x,x]) []
I get the following error message by GHCi:
*Ambiguous type variable `t0' arising from a use of `foldl'
prevents the constraint `(Foldable t0)' from being solved.
Relevant bindings include*
Why is GHCi giving me that message?