Skip to content

Commit

Permalink
feat: save tuple length between steps
Browse files Browse the repository at this point in the history
  • Loading branch information
Chamber6821 committed Jun 11, 2024
1 parent 0d3e3e4 commit f35216e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eo-runtime/src/main/eo/org/eolang/seq.eo
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@
steps.length.eq 0
true
loop 0
steps.length.minus 1 > max-len!

[index] > loop
if. > @
and.
index.lt (steps.length.minus 1)
index.lt ^.max-len
or.
(dataized (steps.at index)).as-bool
true
Expand Down

0 comments on commit f35216e

Please sign in to comment.