Skip to content

Commit

Permalink
sequences.extras: fix longest-subseq missing 1 +
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjbq7 committed Jun 30, 2024
1 parent 484e646 commit 15f20bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extra/sequences/extras/extras.factor
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ IN: sequences.extras
elt1 y seq2 nth-unsafe = [
y x table nth-unsafe nth-unsafe 1 + :> len
len y 1 + tab1 set-nth-unsafe
len n > [ len n! x end! ] when
len n > [ len n! x 1 + end! ] when
] [ 0 y 1 + tab1 set-nth-unsafe ] if
] each
] each end n - end seq1 subseq ;
Expand Down

0 comments on commit 15f20bb

Please sign in to comment.