Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Anonymous recursion. Why doesnt compile?
--SUM 0..3 i^2 = g 3 0 --Why it's not working? --How to do it working in one anonymous function? :o g = \x -> \y -> ( \x -> \y -> \z -> if x>0 then z(x-1)(y+(x**2))(z) else y)(x)(y)( \x -> \y -> \z -> if x>0 then z(x-1)(y+(x**2))(z) else y) main = print $ g(3)(0)
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
haskell_exam_demo
project euler 10, haskell
prettier Tasty
Is Preorder BST
Hanoi solver
divisibleBy a b
Kleintjes
Welcome
sumer
Fibonacci proof
Please log in to post a comment.