Ch 71 - Lists in functional programming

0.0(0)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/4

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.

5 Terms

1

Head

The first element of a list

2

Tail

The remainder of the list (everything after the head)

3

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

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

null

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