Greasy Fork is available in English.

lib:range

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

Auteur
rssa_romeo
Installations quotidiennes
0
Installations (total)
3
Notes
0 0 0
Version
2
Créé
03/04/2024
Mis à jour
15/05/2024
Licence
GPLv3
S'applique à
Tous les sites

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