Back to marketplace

Functional programming

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

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

Card preview (16)

#1
Front (Question)

what are integers

Back (Answer)

numbers with their negative counterparts including zero ( -1 . -2, -3 , 0 , 1 2 3 )

#2
Front (Question)

what are domain

Back (Answer)

A set of which the function input are chosen

#3
Front (Question)

What is codomain

Back (Answer)

This is the set of which output from a functionional programming

#4
Front (Question)

What are natural numbers

Back (Answer)

Start with 0 upward 1 , 2 , 3 ,4

#5
Front (Question)

What is rational numbers

Back (Answer)

This can represent fractions

#6
Front (Question)

What is irrational number

Back (Answer)

This cannot be represented as a fraction

#7
Front (Question)

WHat is high order functions

Back (Answer)

Functions that take a function as an argument or returns a functions as a result or both

#8
Front (Question)

What is map

Back (Answer)

Takes a second function and applies the list of elements before returning the new list

#9
Front (Question)

WHat is fold

Back (Answer)

Reduces the list to a single value

#10
Front (Question)

What is filter

Back (Answer)

Returns the elements of the list to adhere to the condition given

#11
Front (Question)

Features of a functional program

Back (Answer)

High order function Immutable Stateless

#12
Front (Question)

Describe how the total function works to add up all of the numbers in a list. total [] = 0 total (x:xs) = x + total (xs)

Back (Answer)

It uses recursion It splits the list to an head and tail The recursion ends when the list is empty

#13
Front (Question)

What is a first class object

Back (Answer)

This are objects that appear in an expression , be assigned to a variable or arguement. They can be passed as an argument or returned as the result of another function e.g integers , floating points, characters and strings

#14
Front (Question)

What is partial function application

Back (Answer)

A function can take only one input. one of the arguement is fixed , leading to a more restricted and specialised function

#15
Front (Question)

what is functional composition

Back (Answer)

This is the act of combining two functions to create a new function.

#16
Front (Question)

What is the benefits of functional compostion

Back (Answer)

The user is able to use the functions separately and in conjuction as long as they both share the same domain and range