teaching machines

CS 330 Lecture 22 – Haskell

March 30, 2016 by . Filed under cs330, lectures, spring 2016.

Agenda

TODO

Note

Today we begin our foray into functional programming. We’ll discuss what is usually meant by the term functional programming. Haskell is a great example of a language that sticks closely to functional ideals, but it’s different enough that we will spend today examining its syntax, function structure, and common data types.

Code

fs.hs

insides :: [a] -> [a]
insides list = tail (init list)