Greasy Fork is available in English.

lib:range

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

نووسەر
rssa_romeo
Daily installs
0
Total installs
3
Ratings
0 0 0
وەشان
2
Created
2024-04-03
Updated
2024-05-15
مۆڵەت
GPLv3
Applies to
هەموو سایتەکان

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