1/4
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Head
The first element of a list
Tail
The remainder of the list (everything after the head)
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]
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]
null
Can check for if a list is empty. e.g null [ ] will return True