Functional Programing Pt. 1

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/23

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

24 Terms

1
New cards

it has simpler semantics, simpler model of computation than an imperative language


functional programming language

2
New cards

functional programming language avoids what


changing state and mutable data

3
New cards

major drawback of functional programming language


inefficient execution

4
New cards

description of a specific computation


program

5
New cards

refers to the steps to compute the result


the how of the computation

6
New cards

acts as a black box transforming input into output


the what of the computation

7
New cards

it is equivalent to a mathematical function


program

8
New cards

A program is a function that maps inputs (X) to outputs (Y)


program as functions

9
New cards

Describes how to compute a value using formal parameters.


function definition

10
New cards

Calls a function using actual parameters.


function application

11
New cards

in this type of programming, variables are bound to values and cannot change.


functional programming

12
New cards

in this type of programming, variables refer to memory locations that store values and can change.


imperative programming

13
New cards

in functional programming, once a variable has a value, it cannot be changed (true or false)

true

14
New cards

applies function to itself as in recursive

self-application

15
New cards

Functions that take functions as arguments or return functions as results


higher-order function

16
New cards

a function that takes two functions as parameters and produces another function as its returned value.


higher-order function

17
New cards

a function that takes two functions as parameters and produces another function as its returned value.


composition

18
New cards

functions can produce results even in the presence of incomplete or malformed input


nonstrict

19
New cards

If a condition determines the outcome early, later expressions are not evaluated.


short-circuit evaluation

20
New cards

parameters are evaluated only when they are actually used in the procedure


pass by name evaluation

21
New cards

expressions are only evaluated when needed.

lazy evaluation

22
New cards

obey lazy evaluation rules, partially computed list whose remaining elements can continue to be computed up to any desired number

streams

23
New cards

viewed functions as "black boxes" that take inputs, process them (purely mathematical functions), and produce outputs without revealing their internal workings.

lambda calculus

24
New cards

who invented lambda calculus

alonzo church