CS441 Exam 2 Chapter 8

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/31

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.

32 Terms

1
New cards

Currying

Transforming multi-argument function into sequence of single-argument functions

2
New cards

Uncurrying

Converting curried function back to multi-argument function

3
New cards

Curried form

Function structured as nested single-argument functions

4
New cards

Uncurried form

Function taking multiple arguments at once rather than sequentially

5
New cards

Partial function application

Fixing some arguments to create function with fewer parameters

6
New cards

Higher-order function

Function that takes functions as arguments or returns functions

7
New cards

Type signature

Declaration specifying function input and output types

8
New cards

Type inference

Automatic type deduction by compiler

9
New cards

Type class

Haskell construct for functions implemented differently per type

10
New cards

Closure

Function with captured environment from enclosing scope

11
New cards

First-class function

Function treated as value: assigned, passed, returned

12
New cards

Lexical closure

Closure capturing variables from lexically enclosing scope

13
New cards

Functional mapping

Applying function to each element of collection

14
New cards

Map

HOF applying function to each list element, producing new list

15
New cards

Functional composition

Combining functions where output of one becomes input of another

16
New cards

Composition operator

Operator for composing functions

17
New cards

Foldl

HOF processing list left to right with combining function and base value

18
New cards

Foldr

HOF processing list right to left with combining function and base value

19
New cards

Recursive pattern

Common structure in recursive functions abstracted into HOFs

20
New cards

Modular programming

Dividing program into separate, independent modules

21
New cards

Reconfigurable program

Program using composable functions for easy modification and extension

22
New cards

Functional abstraction

Creating general, reusable functions hiding implementation details

23
New cards

Conciseness

Expressing functionality compactly using HOFs and composition

24
New cards

Reusability

Using same function in multiple contexts without modification

25
New cards

Composability

Functions can be combined to create complex functionality

26
New cards

Atomic functions

Small, single-purpose functions as building blocks

27
New cards

Function application

Invoking function with arguments to produce result

28
New cards

Fold

HOF family reducing list to single value with combining function and base case

29
New cards

Helper function

Auxiliary function supporting primary function implementation

30
New cards

Base value

Initial value in recursive operations or fold functions

31
New cards

Accumulator

Variable accumulating result during recursive or iterative computation

32
New cards

Programming abstraction

Managing complexity by hiding details and exposing essential features