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.
1 parent 9e2ab22 commit e56ea3cCopy full SHA for e56ea3c
src/Data/Array.purs
@@ -611,7 +611,7 @@ intersperse a arr = case length arr of
611
len | len < 2 -> arr
612
| otherwise -> STA.run do
613
let unsafeGetElem idx = unsafePartial (unsafeIndex arr idx)
614
- out <- STA.empty
+ out <- STA.new
615
_ <- STA.push (unsafeGetElem 0) out
616
ST.for 1 len \idx -> do
617
_ <- STA.push a out
0 commit comments