Functional Programming ?
Pure Functional Programming
Language
Lazily Evaluated
Language
Statically Typed
Language
- Type Inference
- Hindley - Milner Type System
Kick Ass
Language
(Academia)
- No Null Pointers
- No Loops
- No MutableVariables
Haskell Compilers
Hugs
GHC
Simon Peyton Jones
- Major Contributor to Design of Haskell.
- Wrote GHC Compiler.
Basic Constructs
and
Operations
Lets Implement
Quick Sort in Haskell
- Sorting Algorithm
- Developed by Tony Hoare
- Average O(nlogn)
- Worst O(n2)
Problem #2
Duplicate the elements of a list.
[1 , 2, 3 ]
=>
[1, 1, 2, 2, 3, 3]
Problem #3
Convert String into Uppercase
INPUT: "abcd"
OUPUT: "ABCD"
More awesomeness
to be followed ...
Thank You
Q & A