Skip to content

Instantly share code, notes, and snippets.

@draeton
Created June 17, 2016 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save draeton/1efdc2fe0a4f2b07bc319551b2bfca58 to your computer and use it in GitHub Desktop.
Save draeton/1efdc2fe0a4f2b07bc319551b2bfca58 to your computer and use it in GitHub Desktop.
f=(n,i=(function*(a=0,b=1,c){while(true){c=b+a;a=b;b=c;yield c;}})())=>Array(n).fill().map(()=>i.next().value)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment