Skip to content

Instantly share code, notes, and snippets.

@mattbierner
Created June 19, 2012 02:00
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 mattbierner/2951898 to your computer and use it in GitHub Desktop.
Save mattbierner/2951898 to your computer and use it in GitHub Desktop.
Prosopon Factorial Example
let FactorialContinuation{val cust}<
case \arg: send val ('*' arg cust) ;
>
let Factorial <
case 0 \cust: send cust (1) ;
case \val \cust:
send val ('-' 1 <
case \result:
send Factorial (result FactorialContinuation{val cust})
;
>)
;
>
send Factorial (9 stdout)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment