Run Code
|
API
|
Code Wall
|
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
Niet
Traversable
ex3
Calculate Integral of function
project euler 2, haskell
equiv_strings
Kleinste
Knight Journey
Modular arithmetic with propagating type-checked modulus
=)