Skip to content

Instantly share code, notes, and snippets.

@FurWaz
Last active September 15, 2023 09:52
Show Gist options
  • Save FurWaz/1e7ac7335ebf2b3de2dfffd35cb1511b to your computer and use it in GitHub Desktop.
Save FurWaz/1e7ac7335ebf2b3de2dfffd35cb1511b to your computer and use it in GitHub Desktop.
Python range() function's smallest implementation in JavaScript
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