Guest User

Untitled

a guest
Jul 20th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. def fac(n):
  2. | 0 => 1
  3. | n => n * fac n
  4.  
  5. (def fac (n)
  6. (match 0 (1))
  7. (match n (n * (fac n))))
  8.  
  9. def fac(n):
  10. if n == 0: 1
  11. else:
  12. n * fac n
  13.  
  14. (def fac (n)
  15. (if (n == 0)
  16. 1
  17. (n * (fac n))))
Add Comment
Please, Sign In to add comment