Category talk:Wren-seq: Difference between revisions
Content added Content deleted
(→Source code: Some fairly minor adjustments to the Stack class.) |
(→Source code: Bug fix.) |
||
Line 244: | Line 244: | ||
isList_(a) |
isList_(a) |
||
var c = a.count |
var c = a.count |
||
if (!(size is Num && size.isInteger && |
if (!(size is Num && size.isInteger && size > 0)) { |
||
Fiber.abort("Size must be a positive integer.") |
Fiber.abort("Size must be a positive integer.") |
||
} |
} |
||
if (size >= c) return |
if (size >= c) return [a] |
||
var res = [] |
var res = [] |
||
var n = (c/size).floor |
var n = (c/size).floor |