slice function
dynamic
slice(
- dynamic a,
- dynamic b,
- dynamic from,
- dynamic to,
Implementation
slice(a, b, from, to) {
for (var i = from, j = 0; i < to; i++, j++) {
if (a.length == j) {
a.add(b[i]);
}
}
return a;
}