Imagine a developer needs to read data were each line of a list or a list of list needs to validate that the first element and last element must be specific values.
In this case, first element a 1 and the last a 4.
Data
[1, 4]
[1, 2, 3]
[1, 2, 3, 4]
[0, 2, 3, 4]
[1, 2, 3, 5, 4]
Results
0 is match Not a match
1 is match Not a match
2 is match Match
3 is match Not a match
4 is match Match
See List patterns docs.