Skip to content

Commit e56ea3c

Browse files
authored
Replace Data.Array.ST.empty by Data.Array.ST.new (#198)
1 parent 9e2ab22 commit e56ea3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Data/Array.purs

+1-1
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ intersperse a arr = case length arr of
611611
len | len < 2 -> arr
612612
| otherwise -> STA.run do
613613
let unsafeGetElem idx = unsafePartial (unsafeIndex arr idx)
614-
out <- STA.empty
614+
out <- STA.new
615615
_ <- STA.push (unsafeGetElem 0) out
616616
ST.for 1 len \idx -> do
617617
_ <- STA.push a out

0 commit comments

Comments
 (0)