Loops/Wrong ranges: Difference between revisions
m
→{{header|Vlang}}
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
|||
Line 2,409:
It appears that either #5 fits the requirements of this task so I've translated a function which generates the appropriate sequence using #1 (limited to a maximum of 10 elements as some sequences will be infinite). I've then applied #5 to the resulting sequence. All sequences include the stop value if it's actually reached.
{{trans|
<syntaxhighlight lang="vlang">struct Seq {
start int
stop int
incr int
comment
}
|