Skip to content

Commit

Permalink
Terminate the iteration in regimes
Browse files Browse the repository at this point in the history
  • Loading branch information
pavpanchekha committed Nov 27, 2024
1 parent 28884f4 commit e210cd9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/regimes.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,9 @@
(let loop ([i (- number-of-points 1)])
(define alt-idx (vector-ref result-alt-idxs i))
(define next (vector-ref result-prev-idxs i))
(cons (si alt-idx (+ i 1)) (loop next)))))
(cons (si alt-idx (+ i 1))
(if (= next number-of-points)
'()
(loop next))))))

(require (submod "." core))

0 comments on commit e210cd9

Please sign in to comment.