I show how the Maybe datatype and lists can be used to deal with functions that return either zero or multiple values. All code can be found in the course git repository https://github.com/MariusFurter/MAT605-haskell-FS2300:00 Introduction
00:26 Maybe datatype
04:05 Using lists for partial and multivalued functions
07:53 Lifting functions to Maybe and Lists
14:51 Lifting elements to Maybe and Lists
16:12 Flattening Maybe and Lists
The playlist for the course can be found here: https://www.youtube.com/watch?v=0HImO-me_sg
0 Comments