Skip to content

Commit

Permalink
deploy: 7dce44d
Browse files Browse the repository at this point in the history
  • Loading branch information
Arpita-Jaiswal committed Sep 26, 2023
1 parent d6e7f9d commit 4ae419b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions -/fastn-stack.github.io/fastn-js/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,11 @@ function clampDecrement(a, by, min, max) {
}
a.set(newValue);
}

function getRange(min, max) {
const result = [];
for (let i = min.get(); i < max.get(); i++) {
result.push(i);
}
return fastn.mutableList(result);
}
8 changes: 8 additions & 0 deletions lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,11 @@ function clampDecrement(a, by, min, max) {
}
a.set(newValue);
}

function getRange(min, max) {
const result = [];
for (let i = min.get(); i < max.get(); i++) {
result.push(i);
}
return fastn.mutableList(result);
}
8 changes: 8 additions & 0 deletions utils.ftd
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,11 @@ integer max: 5
js: [$assets.files.lib.js]

clampDecrement(a, by, min, max)


-- integer list range(min,max):
integer min: 0
integer max:
js: [$assets.files.lib.js]

getRange(min, max)

0 comments on commit 4ae419b

Please sign in to comment.