Skip to main content

INF1A - top navigation

  • Learn
  • Piazza
  • DRPS

Breadcrumb

  1. Home
  2. INF1A: Informatics 1 - Introduction to Computation

INF1A: Week 4

Functional Programming

In the fourth week of the course we'll introduce higher-order functions starting with map, filter, and fold, and then continue the theme by talking about lambda expressions.

  • FP Lecture 6: Map, Filter, Fold (code)
  • FP Lecture 8: Lambda Expressions (code)

FP required reading: Textbook

  • Chapter 12: Higher-Order Functions
  • Chapter 13: Higher and Higher
Computation and Logic

In the Computation and Logic strand, we'll go beyond the syllogisms and delve into sequent calculus. We will study the negation, conjunction, disjunction rules. Time permitting, we will have a (strictly optional) lecture about the horrors of doing logic in mediaeval times.

CL-7,8: From syllogisms to sequent calculus

Slides for the week are 

  • CL-Week04.pdf

CL Required reading

  • Textbook chapter 14, Sequent Calculus

Tutorial 4 - tutorial pack

FP and CL Tutorial 4 sessions are held in Week 5.
 
Direct search links to materials on Learn (note that the tutorial materials only become available after the deadline of the previous tutorial):
  • FP Tutorial 4: Content / Informatics 1 - Introduction to Computation (2023-2024)[SEM1] (ed.ac.uk)
  • CL Tutorial 4: Content / Informatics 1 - Introduction to Computation (2023-2024)[SEM1] (ed.ac.uk)

FP Tutorial 4 is longer than the previous ones because it repeats explanation of higher-order functions that is in the lectures and textbook.

The number of exercises is similar as is their difficulty, except for the final optional exercise.

License
All rights reserved The University of Edinburgh

Book traversal links for INF1A: Week 4

  • INF1A: Week 3
  • Up
  • INF1A: Week 5

Navigation links

  • INF1A: Course Materials
  • INF1A: Resource List
  • INF1A: Assessment
  • INF1A FP Competition
  • INF1A: Maths for Computing
  • INF1A: Week 1
  • INF1A: Week 2
  • INF1A: Week 3
  • INF1A: Week 4
  • INF1A: Week 5
  • INF1A: Week 6
  • INF1A: Week 7
  • INF1A: Week 8
  • INF1A: Week 9
  • INF1A: Week 10
  • INF1A: Week 11
RSS feed

Opencourse privacy & accessibility statements; contact Informatics, ILTS.