Closed crap0101 closed 5 months ago
...a variant which do not stack overflow :-D
`let range start stop =
let op = if stop > start then (-) else (+) in let rec aux s acc = function | 0 -> s :: acc | n -> aux (op s 1) (s :: acc) (n - 1) in aux stop [] (abs (start - stop));; `
Issue Description
Please include a summary of the issue.
Fixes # (issue)
Changes Made
alternative solution for number 22
Please check if the PR fulfills these requirements
[ ] PR is descriptively titled and links the original issue above
[ ] Before/after screenshots (if this is a layout change)
[ ] Details of which platforms the change was tested on (if this is a browser-specific change)
[ ] Context for what motivated the change (if this is a change to some content)