Skip to content

Commit 8e90603

Browse files
authored
change unsafeThaw [] to empty
1 parent ab61f68 commit 8e90603

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Data/Array.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ nubBy comp xs = case head indexedAndSorted of
927927
-- |
928928
nubByEq :: forall a. (a -> a -> Boolean) -> Array a -> Array a
929929
nubByEq eq xs = ST.run do
930-
arr <- STA.unsafeThaw []
930+
arr <- STA.empty
931931
ST.foreach xs \x -> do
932932
e <- not <<< Exports.any (_ `eq` x) <$> (STA.unsafeFreeze arr)
933933
when e $ void $ STA.push x arr

0 commit comments

Comments
 (0)