Created
May 21, 2019 13:16
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function* filler(from,to){ | |
while(from <= to) | |
yield from++ | |
} | |
function fill(x,y){ | |
return [...filler(x,y)] | |
} | |
//fill(-1,10) /-> [-1,0,1,2,3,4,5,6,7,8,9,10] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment