List Comprehensions

Course subject(s) Module 04. List Comprehensions

List comprehensions allow many functions over lists to be defined in a very concise manner. We start by explaining generators and guards, introduce the function zip and conclude with the notion of string comprehensions.

Creative Commons License
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/.
Back to top