lib:range

adds range function to allow for i of range(0, 10, step:optional)

Penulis
rssa_romeo
Pemasangan harian
0
Total pemasangan
3
Nilai
0 0 0
Versi
2
Dibuat
03 April 2024
Diperbarui
15 Mei 2024
Lisensi
GPLv3
Berlaku untuk
Semua situs

example:
const range = loadlib('range')
for (var i of range(3))
log(i) //[1, 2, 3]
for (var i of range(3, 5))
log(i) //[3, 4, 5]
for (var i of range(3, 5, .5))
log(i) //[3, 3.5, 4, 4.5, 5]
requires:
https://greasyfork.org/en/scripts/491562-libloader-lib
https://greasyfork.org/en/scripts/489763-all-functions-lib