Racket and Shell Commands Vocabulary

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/24

flashcard set

Earn XP

Description and Tags

Flashcards covering essential vocabulary, list procedures, predicates, control flow structures, higher-order functions, and shell commands from the lecture notes.

Last updated 1:42 AM on 9/21/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

25 Terms

1
New cards

first

A function that returns the first item of a list.

2
New cards

rest

A function that returns everything but the first item of a list.

3
New cards

empty?

A predicate that checks if a list is empty.

4
New cards

cons

A function that adds one item to the front of a list.

5
New cards

append

A function that joins two lists together, requiring a list on both sides.

6
New cards

car

The old name for first.

7
New cards

cdr

The old name for rest.

8
New cards

flonum?

A predicate that checks if a value is a floating-point number, which must be checked before integer type checks because (integer? 1.0) returns #t.

9
New cards

quotient

A math function that computes whole-number division.

10
New cards

remainder

A math function that returns the remainder of division; pairs with quotient for base conversion.

11
New cards

apply

A function that spreads a list out as separate arguments for a function that expects them.

12
New cards

cond

A control flow expression that tests clauses top to bottom in order.

13
New cards

let

A control flow structure used to name intermediate results and avoid repeating recursive calls.

14
New cards

lambda

A construct that makes an unnamed function on the spot.

15
New cards

map

A higher-order function that transforms every item in a list using a function.

16
New cards

filter

A higher-order function that keeps only the items in a list that pass a test predicate.

17
New cards

assq

A lookup table search function that uses eq? to compare keys.

18
New cards

assv

A lookup table search function that uses eqv? to compare keys, making it safe for numbers.

19
New cards

assoc

A lookup table search function that uses equal? to compare keys, which works on lists and strings.

20
New cards

remove-duplicates

A function that removes duplicate values from a list.

21
New cards

sort

A function that sorts a list based on a comparison function such as < or symbol<?.

22
New cards

mv

A shell command used to rename or move a file.

23
New cards

cd

A shell command used to change the current directory.

24
New cards

ls -l

A shell command used to list files with details.

25
New cards

touch

A shell command used to create an empty file.