Created
August 2, 2018 03:26
-
-
Save tail-call/8b5d01dd7aa3a39691b855d912f73718 to your computer and use it in GitHub Desktop.
iota
This file contains hidden or 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 iota (n, zero = 0, delta = 1) { | |
| return (new Array(n)).fill(null).map((_, i) => zero + delta * i); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment