Loops/Wrong ranges: Difference between revisions

Line 1,958:
 
=={{header|langur}}==
In the following example, we could have just started with a list of lists, but following the Python example, we process thea .data string into a table.
 
{{trans|Python}}
Line 1,975:
 
var .table = submatches(RE/([^ ]+) +([^ ]+) +([^ ]+) +(.+)\n?/, .data)
 
val .f = ffn(.x) number .x
for .i in 2..len(.table) {
.table[.i] = map [.f, .f, .f, _], .table[.i]
Line 1,990 ⟶ 1,991:
}
}
}
}</syntaxhighlight>
 
{{out}}
889

edits