Last active
September 15, 2023 09:52
-
-
Save FurWaz/1e7ac7335ebf2b3de2dfffd35cb1511b to your computer and use it in GitHub Desktop.
Python range() function's smallest implementation in JavaScript
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
range=f=(p,x)=>p<x?[p,...f(p+1,x)]:[] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment