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
Hanoi solver
Modeling algebraic understanding with Haskell in KS1
State
(Int,Int) -> Bool plot
Factorial in haskell
Advansed Hello Word
Derive type class for parameterized data type
suffix trie
project euler 3, haskell
Modular arithmetic with propagating type-checked modulus