Interview question of the issue #339 of rendezvous with cassidoo.
Write a function that produces a generator that produces values in a range.
Example:
let range = fromTo(0,3)
> range()
0
> range()
1
> range()
2
> range()
null
Just pnpm i
to install all dependencies and then pnpm t
to run the tests!