In this lecture we show that Haskell is the world’s best imperative programming language. We start by explaining what imperative programs are and how they can be naturally viewed as side-effecting functions. We define a few basic imperative functions and some higher-order functions to combine them. We conclude by developing a simple game.
Introduction to Functional Programming by TU Delft OpenCourseWare is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Based on a work at https://ocw.tudelft.nl/courses/introduction-to-functional-programming/.