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(x1)(y+(x**2))(z) else y)(x)(y)( \x > \y > \z > if x>0 then z(x1)(y+(x**2))(z) else y) main = print $ g(3)(0)
run

edit

history

help
0
Please
log in
to post a comment.
Advansed Hello Word
haskell linked list
Fibonacci proof
Sierpinski Triangle as lazy list
preparednessQuotient
tried some polynoms 2: now with some `*` and foldr(p)
Reader
Haskell remove item by index
project euler 1, haskel
Welcome
Please log in to post a comment.