A singly linked list can be thought of having two constructors: an empty list an element followed by a list They're often called "nil" and "cons" in functional programming. What do other languages call these?

Sep 8, 2025 · 10:11 AM UTC

3
1
10
How to you pronounce those?
Replying to @louispilfold
I know these as CAR and CDR
3
Replying to @louispilfold
I guess "empty" and "nonempty" could be good names for the constructors (?
2
This tweet is unavailable