Skip to content

Latest commit

 

History

History

339-fromTo

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

fromTo

Interview question of the issue #339 of rendezvous with cassidoo.

The Question

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

Installing & Running

Just pnpm i to install all dependencies and then pnpm t to run the tests!