Going somewhere.
This commit is contained in:
1 parent
1da186a759
commit
3d1ef31b90
8 files changed
+158
-14533
No files matched your search
@@ -0,0 +1,12 @@
|
||||
export function range(min, max=undefined){
|
||||
if(max === undefined){
|
||||
max = min;
|
||||
min = 0;
|
||||
}
|
||||
const ret = [];
|
||||
while(min < max){
|
||||
ret.push(min);
|
||||
min ++;
|
||||
}
|
||||
return ret
|
||||
}
|
||||
Reference in new issue
Block a user