Haskell
Haskell
Chapter 1 - Introduction
0
What is a Functional Language?
int total = 0;
for (int i = 1; i £ 10; i++)
total = total + i;
2
Example
sum [1..10]
3
Historical Background
1930s:
4
Historical Background
1950s:
1960s:
1970s:
1970s:
1970s - 1980s:
1987:
1990s:
2003:
2010-date:
f [] = []
f (x:xs) = f ys ++ [x] ++ f zs
where
ys = [a | a ¬ xs, a £ x]
zs = [b | b ¬ xs, b > x]
? 14