Category talk:Wren-seq: Difference between revisions

(→‎Source code: Bug fix.)
(→‎Source code: Bug fix.)
Line 67:
var count = a.count
var indices = []
if (count == 0) return [false, 0, indices]
if (start < 0) start = count + start
for (i in start...count) {
Line 310:
// Applies a function to each element of a list and then flattens and returns the results.
static flatMap(a, fn) {
var res = a.map { |e| fn.call(e) }.toList
res = flatten(res)
return res
}
9,476

edits