← Terug naar het overzicht

INFOFP

Functioneel programmeren

Functional programming

Kerngegevens

Faculteit
Bètawetenschappen
Aanvangsblok
Blok 1
EC
7.5 EC
Niveau
Bachelor (niv. 2)
Tijdslot
B
Voertaal
Nederlands
Inschrijving
Inschrijving gesloten
Blok 1: 8 jun 2026 t/m 26 jun 2026
Ingangseisen
Geen ingangseisen bekend Alle eisen
Bekijk in OEAPI

Telt mee in

Beschrijving

This course introduces functional programming through the programming language Haskell. In contrast with the language C# – introduced in Imperatief/Game/Mobiel programmeren – which is based on statements, organized in methods and classes, functional programming is based entirely on expressions and functions. This shifts the focus from how a program operates to what is does. Concrete topics treated in this course include higher-order functions, parametric and ad-hoc polymorphism (also known as generics and overloading in other programming languages), algebraic data types and pattern matching. These ideas appear not only in Haskell, but in other modern languages such as Scala, Swift or Kotlin. An important part of the course is devoted to reasoning about programs, either by equations or by induction. The language Haskell imposes a strong separation between pure computations and those with side-effects, such as input and output. Monads are introduced to model the idea of sequential computation in a functional language. Similar abstractions such as functors are also part of the contents of this course. Course form - 2 × 2 hours lectures - 1 × 2 hours practicals - 1 × 2 hours group tutorials Attendance is not strictly mandatory (albeit recommended).

Overgenomen uit de Cursusplanner, omdat de docent dit hier nog niet heeft ingevuld. Bekijk in Cursusplanner

Leerdoelen

Learning Goals By the end of the course you will be able to - solve problems using a ‘functional approach’. That is, define what needs to be computed using techniques and concepts such as - recursion, - pattern matching, - composition, - higher order functions, - algebraic data types, - monads, - immutable and persistent data structures, and - laziness. - reason about the correctness and the types of functions. - develop a small, real world game in the functional language Haskell Tests - there is a midterm M which counts for 30% of the grade, - there is a final exam F which counts for the remaining 70% of the grade. Additionally, - there is one large pass/fail assignment that you have to do in pairs, and that can gain you at most 0.4 bonus points P for the process and at most 0.4 bonus points R for the result (see below for details). - there are 3 small pass/fail lab-assignments, out of which you need to pass at least 2. Your final grade will be computed as min(0.3*M + 0.7*F + P + R, 10). To pass the course - the weighted average of the midterm and the final needs to be at least a 5, - you need to pass the large practical assignment, and - you need to pass at least 2 small assignments. To qualify for the retake exam: - your weighted average of the midterm and the final needs to be at least a 4, - you need to pass the large assignment, and - you need to pass at least one small assignment. You cannot retake the large assignment. Test matrix The learning goals are tested in the following manner:

Learning goalMidtermFinalGameSmall practicals
Solve problems using a functional approach, using techniques and concepts such as:
recursion,XXX
pattern matching,XXXX
composition,XXX
higher order functions,XXX
algebraic data types,XXXX
monads,XX
immutable and persistent data structures, andXX
laziness.X
Reason about the correctnessX
and the types of functions.X
develop a small, real world program in the functional language Haskell.X

Overgenomen uit de Cursusplanner, omdat de docent dit hier nog niet heeft ingevuld. Bekijk in Cursusplanner

Toetsing

Eindresultaat: Verplicht · Weging 100% · ECTS 7,5

Overgenomen uit de Cursusplanner, omdat de docent dit hier nog niet heeft ingevuld. Bekijk in Cursusplanner

Ingangseisen en voorkennis

Ingangseisen Er is geen informatie over verplichte ingangseisen bekend. Voorkennis Programming skills

Overgenomen uit de Cursusplanner, omdat de docent dit hier nog niet heeft ingevuld. Bekijk in Cursusplanner