.f (first_n) actually looked for the first n+1 numbers and simply discarded the last one. It obviously worked, but if you want to remember the some value from the nth (the last) computation in a with an assignment, it remembered the value from the (n+1)th.
E.g. .fJZTZJ printed 11, because it already determined the 11th valid number.
This commit changes the behavior. It only generates the first n numbers, so .fJZTZJ prints 10.
.f
(first_n) actually looked for the first n+1 numbers and simply discarded the last one. It obviously worked, but if you want to remember the some value from the nth (the last) computation in a with an assignment, it remembered the value from the (n+1)th.E.g.
.fJZTZJ
printed11
, because it already determined the 11th valid number.This commit changes the behavior. It only generates the first n numbers, so
.fJZTZJ
prints10
.