Back to marketplace

Section 12 Chapter 69 - Functional Programming

No description yet. This curated deck is ready for daily study.

Total cards: 22•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (22)

#1
Front (Question)

Programming Paradigm

Back (Answer)

A style of computer programming e.g. OOP

#2
Front (Question)

Procedural

Back (Answer)

Series of instructions that tell the computer what to do

#3
Front (Question)

Declarative

Back (Answer)

Written statements are implemented in a way that the programming language deems most appropriate

#4
Front (Question)

Functional programming

Back (Answer)

Functions are the building blocks of the program. Statements are written as a series of functions

#5
Front (Question)

Function

Back (Answer)

A rule or set of rules that maps values from the domain to the co-domain. A value from the domain is input tot the function and it returns a value from the co-domain

#6
Front (Question)

What do the domain and co-domain have in common (in terms of sets)

Back (Answer)

They are both subsets of objects in some data type

#7
Front (Question)

Domain

Back (Answer)

The set from which the functions input values are chosen

#8
Front (Question)

Co-Domain

Back (Answer)

The set from which the functions outputs are chosen. Not all the members of the co-domain need to be outputs

#9
Front (Question)

Can the domain and co-domain be of different data types

Back (Answer)

yessir

#10
Front (Question)

Function type

Back (Answer)

A -> B, where A is the argument type and B is the result type

#11
Front (Question)

Argument type

Back (Answer)

The data type of an argument of a function

#12
Front (Question)

Result type

Back (Answer)

The data type of the output of a function

#13
Front (Question)

First class object (4)

Back (Answer)

An object which can • Appear in expressions • Be assigned to a variable • Be assigned as an argument • Be returned by a function

#14
Front (Question)

What is the cool first class object in functional programming

Back (Answer)

functions!!1!!11 :O

#15
Front (Question)

What is the significance of functions being first class objects

Back (Answer)

They can be passed as an argument or returned by a function

#16
Front (Question)

Function Application

Back (Answer)

A function applied to its arguments

#17
Front (Question)

Whats special about functional programming (2)

Back (Answer)

• Statelessness - No side effects

#18
Front (Question)

Statelessness

Back (Answer)

Variables are immutable - their value cannot change

#19
Front (Question)

No side effects

Back (Answer)

The only thing that a function can do is calculate something and return a result. Since the value of variables cannot change a function will always return the same output for the same input

#20
Front (Question)

Composition of functions

Back (Answer)

Since functions can be used as an argument, multiple functions can be combined to create a new function

#21
Front (Question)

Type

Back (Answer)

A set of values e.g. Integer, Float

#22
Front (Question)

Typeclass

Back (Answer)

A set of types e.g. Num, which contains Integer, Float…