Open yaitskov opened 2 years ago
Can you clarify how the instance could be improved? member
has a Hashable
constraint on the element type, and it's not obvious how to use it in the Foldable
instance.
It would probably be helpful to simply point this out in the haddocks of the Foldable
instance.
Hi,
I think instance of
Foldable.elem
for HashSet has default implementation, which has complexityO(n)
, meanwhilemember
function isO(log n)
. IMHO it looks like a bug.