Skip to content

Instantly share code, notes, and snippets.

@atg
Forked from ELLIOTTCABLE/fib.cpaws
Created April 27, 2010 00:39
Show Gist options
  • Save atg/380152 to your computer and use it in GitHub Desktop.
Save atg/380152 to your computer and use it in GitHub Desktop.
fib ↼ routine {
if { @ x =(0) |(@ x =(1)) } { @ last(1) } {
@ last( callee(@ 1 -(1), ?) +(callee(@ 1 -(2), ?))) }}
fib(5) { print(@) }
fib ↼ routine
if { @x = 0 | @x = 1 } { @last(1) }
@last(callee(@1 - 1, ?) + callee(@1 - 2, ?))
fib(5) { print(@) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment