Range (computer programming): Difference between revisions

Content deleted Content added
Range as a operator: correct Perl syntax.
Added V to the list
Tag: Reverted
Line 67:
let heartwarming = "heartwarming!".to_string();
let warm = &heartwarming[5..9];
</syntaxhighlight>
 
[[V (programming language)|V (Vlang)]] uses the {{Mono|..}} operator.<ref>{{cite web|url=https://github.com/vlang/v/blob/master/doc/docs.md#range-for|title=range for - V programming language tutorial|website=github.com|date=May 2025}}</ref>
<syntaxhighlight lang="rust">
for i in 0 .. 5 { print(i) }
</syntaxhighlight>