Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ryangs
· 2y ago · 0 comments
But the nonempty list never has an element, so we don't need to worry about the type mutation of removing an element from it. Filter just returns a nonempty list.
Comments
[–]
jerf
2y ago
"But the nonempty list never has an element, so we don't need to worry about the type mutation of removing an element from it."
NonEmpty
always
has an element.