CS 330 Lecture 31 – On to Haskell
April 16, 2014 by Chris Johnson. Filed under cs330, lectures, spring 2014.
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
Think About This
Where would you place the following languages on the triangle of concerns?
- Assembly
- C
- C++
- Java
- Logo
- Shell
- Ruby
show
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
show
Don’t marry gamers
Smash their consoles and they’ll cry
“I want a trivorce!”
show