Loops/Wrong ranges: Difference between revisions
Content deleted Content added
PascalABC.NET |
Langurmonkey (talk | contribs) |
||
Line 1,961:
{{trans|Python}}
<syntaxhighlight lang="langur">
val data = qs:block END
start stop increment comment
-2 2 1 Normal
Line 1,974 ⟶ 1,975:
END
# Process data string into table.
var .table = submatches(RE/([^ ]+) +([^ ]+) +([^ ]+) +(.+)\n?/, .data)▼
# We could have just started with a list of lists, of course.
▲for .i in 2..len(.table) {
▲ .table[.i] = map [.f, .f, .f, _], .table[.i]
}
for
val
{
val
catch {
writeln "{{
} else {
writeln "{{
}
}
|