We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unsafeThaw []
empty
1 parent ab61f68 commit 8e90603Copy full SHA for 8e90603
src/Data/Array.purs
@@ -927,7 +927,7 @@ nubBy comp xs = case head indexedAndSorted of
927
-- |
928
nubByEq :: forall a. (a -> a -> Boolean) -> Array a -> Array a
929
nubByEq eq xs = ST.run do
930
- arr <- STA.unsafeThaw []
+ arr <- STA.empty
931
ST.foreach xs \x -> do
932
e <- not <<< Exports.any (_ `eq` x) <$> (STA.unsafeFreeze arr)
933
when e $ void $ STA.push x arr
0 commit comments