CS135 Flash Cards Knowledge

0.0(0)
studied byStudied by 3 people
0.0(0)
call with kaiCall with Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/5

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:48 AM on 12/13/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

6 Terms

1
New cards

build-list

2 parameters
1. Natural number n, the length of the list

  1. Function (lambda (i)…) where i is the index (0 to n-1). No accumulators

Returns a list of length n with each element modified by the function

2
New cards

map

2 parameters

  1. Function (lambda (x)…) or a named function. No accumulators

  2. List (can be multiple)

Returns a list of the same length with each element transformed by the function

3
New cards

filter

2 parameters

  1. Predicate function or a predicate (lambda (x)…)

  2. List

Returns list with only the elements satisfying the predicate

4
New cards

sort

2 parameters

  1. List

  2. Comparator function or a (lambda (x y)…) function with an accumulator, since you need to compare two items

Returns list where that aligns with the comparator

5
New cards

foldr

3 parameters

  1. Function (lambda (x y)…)

  2. Base value, the starting accumulator

  3. List

Returns a single value (can be anything), processes from right to left

6
New cards

foldl

3 parameters

  1. Function (lambda (x y)…)

  2. Base value, the starting accumulator

  3. List

Returns a single value (can be anything), processes from left to right