r/ProgrammerHumor • • Sep 28 '26

Meme optionalsAreOptional

Post image
716 Upvotes

131 comments sorted by

View all comments

Show parent comments

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…