Skip to content

Commit

Permalink
Corrected sequence normalisation with pure (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mie6 authored Feb 1, 2023
1 parent 38858c4 commit 4986269
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ private [deepembedding] final class Seq[A](private [backend] var before: DoublyL
after.clear()
mergeFromRight(p, chooseInto(r))
// shift pure to the right by swapping before and after (before is empty linked list!)
case (_: Pure[_]) <** _ =>
case (_: Pure[_]) <* _ =>
assume(before.isEmpty, "empty can reuse before instead of allocating a new list because before is empty")
val empty = before
before = after
Expand Down

0 comments on commit 4986269

Please sign in to comment.