r/ProgrammerHumor • • Sep 28 '26

Meme optionalsAreOptional

Post image
718 Upvotes

130 comments sorted by

View all comments

Show parent comment

1

u/ExtraTNT Sep 28 '26

The head of a list of type a is maybe a, but can be nothing

Instead of checking for size every fucking time you use the list, just do it once…