unique elements in a haskell list

前端 未结 7 1880
有刺的猬
有刺的猬 2020-12-13 17:03

okay, this is probably going to be in the prelude, but: is there a standard library function for finding the unique elements in a list? my (re)implementation, for clarificat

相关标签:
7条回答
  • 2020-12-13 17:58

    I searched for (Eq a) => [a] -> [a] on Hoogle.

    First result was nub (remove duplicate elements from a list).

    Hoogle is awesome.

    0 讨论(0)
提交回复
热议问题