@dogmalang/range
v0.1.0
Published
range() for Dogma language.
Downloads
1
Readme
@dogmalang/range
range()
for Dogma language.
Developed in Dogma, compiled to JavaScript.
Engineered in Valencia, Spain, EU by JustoLabs.
Examples
use(
"@dogmalang/range"
)
range(5) #[0, 1, 2, 3, 4, 5]
range(-5) #[0, -1, -2, -3, -4, -5]
range(0, -5) #[0, -1, -2, -3, -4, -5]
range(5, -5) #[5, 4, 3, 2, 1, 0, -1, -2, -3, -4, -5]
range(-5, 5) #[-5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5]