Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
folder
folder :: (a->a->a) -> a -> [a]-> a 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
Exercise
Haskell Tree example
(-‿‿-)
Quicksort in Haskell
Haskell Fibonacci Numbers
State
Znajdz trójkąty prostokątne
haskell
Split into n distinct parts
haskell fibonacci