J. Correia Lopes

FEUP/DEI & INESC TEC

User Tools

Site Tools


teach:fpro:lectures:19

T: 04/12/2018

Master in Informatics and Computing Engineering
Programming Fundamentals
Instance: 2018/2019


Lecture #19 :: 04/12/2018

Goals

By the end of this class, the student should be able to:

  • Describe advanced collection concepts using Lists of Tuples
  • Simplify common list processing patterns using List Comprehensions
  • Simplify list processing using Sequence Processing Functions: map(), filter()
  • Describe advanced list sorting
  • Clarify code using lambda forms

Content

  • Functional programming with collections
    • 21.1 Lists of Tuples
    • 21.2 List Comprehensions
    • 21.3 Sequence Processing Functions: map(), filter() and reduce()
    • 21.4 Advanced List Sorting
    • 21.5 The Lambda
    • Exercises

Bibliography

  • Steven F. Lott, Building Skills in Python — A Programmer's Introduction to Python, FreeTechBooks, 2010 (Chapter 21) PDF.

Materials

Summary

  • Advanced collection concepts using Lists of Tuples. List Comprehensions. Sequence Processing Functions: map(), filter(). Advanced list sorting. Lambda forms.

FPRO, 2018/19

« Previous | Index | Next »

teach/fpro/lectures/19.txt · Last modified: 03/12/2018 23:23 by Correia Lopes