SHARE
TWEET

Untitled

a guest Jun 25th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ########
  2. #########
  3. ########
  4. ########
  5. #########
  6.  
  7. [13] pry(main)> ->(n){ (f = ->(a, b, n) { puts b;  n == 1 ? a+b : f.call(b, a+b, n-1) }).call(1,1,n) }.call(6)
  8. 1
  9. 2
  10. 3
  11. 5
  12. 8
  13. 13
  14. => 21
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