Ch 71 - Lists in functional programming

call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/4

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 8:11 AM on 5/23/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Add student to class section state
Add studentsNo students in these sections. Invite them to track progress!

5 Terms

1
New cards

Head

The first element of a list

2
New cards

Tail

The remainder of the list (everything after the head)

3
New cards

Prepending

Adding an element to the front of a list, this is done by:

*Main> 4:[1, 2, 3]

This outputs [4, 1, 2, 3]

4
New cards

Appending

Adding an element to the end of a list, this is done by:

*Main> [1, 2, 3] ++ [4, 5, 6]

This outputs [1, 2, 3, 4, 5, 6]

5
New cards

null

Can check for if a list is empty. e.g null [ ] will return True