Guest User

Untitled

a guest
Oct 21st, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. echo call_user_func(call_user_func(function ($func) {
  2. return call_user_func(function ($f) use ($func) {
  3. return call_user_func(function ($g) use ($f) {
  4. return function ($n) use ($f, $g) {
  5. return call_user_func($g($f($f)), $n);
  6. };
  7. }, $func);
  8. }, function ($f) use ($func) {
  9. return call_user_func(function ($g) use ($f) {
  10. return function ($n) use ($f, $g) {
  11. return call_user_func($g($f($f)), $n);
  12. };
  13. }, $func);
  14. });},
  15.  
  16. function ($h) { /* Fibonacci */
  17. return function ($n) use ($h) {
  18. return ($n <= 2) ? 1 : ($h($n - 2) + $h($n - 1));
  19. };
  20. }), 10);
  21.  
  22. echo "\n";
Add Comment
Please, Sign In to add comment