Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
folder
folder :: (a->b->b) -> b -> [a]-> b folder (#) e [] = e folder (#) e (x:xs) = x # folder (#) e xs --product = folder (*) 1 --and = folder (&&) True --sum = folder (+) 0 --or = folder (||) False main = print $ folder (+) 1 [1,4,7,3,67]
run
|
edit
|
history
|
help
0
(Int,Int) -> Bool plot
Removed input
Kleinste
prettier Tasty
Fibonacci proof
Factors of a number, prime numbers
Modular arithmetic with propagating type-checked modulus
project euler 6, haskell
Hanoi solver
Métodos simples