stdlib icon indicating copy to clipboard operation
stdlib copied to clipboard

Make `list.unique` logarithmic instead of quadratic

Open radekm opened this issue 6 months ago • 3 comments

Fixes https://github.com/gleam-lang/stdlib/issues/667. ~New list.unique implementation uses gleam/set to detect whether item has already been seen.~ New list.unique implementation uses gleam/dict to detect whether item has already been seen (it can't use gleam/set because that would create import cycle).

radekm avatar Aug 14 '24 09:08 radekm