daily pastebin goal
57%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 'Simple multi-line block'
  2.  
  3. $:foo
  4.    block
  5.       1
  6.       2
  7.       +
  8.    endb
  9. end_foo;
  10.  
  11. | Fibonacci using 'case'
  12. | and multi-line stack and block constructor.
  13.  
  14. $:fib
  15.    'multi-line block'
  16.    block
  17.       %
  18.       'multi-line stack'
  19.       stack
  20.          [ % 1 - @fib & 2 - @fib + ] [ % = ]
  21.          []                          [ 1 <= ]
  22.       ends
  23.       case
  24.    endb
  25. end_fib;
  26.  
  27. (foo pp)
  28. ($foo ^ pp)
  29.  
  30. (9 @fib pp)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top