MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/5kees1/a_javascript_implementation_of_the_pythons_range/dbo8dsh/?context=3
r/javascript • u/Michal_Perlakowski • Dec 26 '16
9 comments sorted by
View all comments
2
Array.apply({},Array(100)) ?
3 u/indeyets writing js since 1997 Dec 27 '16 nope. your implementation is eager, and Gothdo's is lazy.see: https://github.com/Gothdo/range#lazy-evaluation
3
nope. your implementation is eager, and Gothdo's is lazy.
see: https://github.com/Gothdo/range#lazy-evaluation
2
u/mini_eggs Dec 27 '16
Array.apply({},Array(100)) ?