CS 330 Lecture 31 – On to Haskell
Agenda
- what ?s
- concerns about languages:
- speed of execution
- ease of development
- program correctness
- think about this
- the functional paradigm
- Haskell
- lists and strings
- ranges
- head, cons, tail
- initials
- sum
- add1/abs/threshold
- for-each pattern, map
- higher order functions
TODO
- Read chapters 1 and 2 of Learn You a Haskell. 1/4 sheet.
Think About This
Where would you place the following languages on the triangle of concerns?
- Assembly
- C
- C++
- Java
- Logo
- Shell
- Ruby
Code
april16.hs
initials first second third = head first : head second : head third : []
Haiku
Nerds mostly learn fast
Part of Haskell trips them up
The social functions
Part of Haskell trips them up
The social functions
Don’t marry gamers
Smash their consoles and they’ll cry
“I want a trivorce!”
Smash their consoles and they’ll cry
“I want a trivorce!”