Professional Documents
Culture Documents
Chapter 1 - Introduction
1
What is a Functional Language?
int total = 0;
for (int i = 1; i 10; i++)
total = total + i;
3
Example
sum [1..10]
4
Historical Background
1930s:
5
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]
? 15