News for hackers. Stuff that matters.
Re:Typing Lists and Tuples in Elixir by sdeframond on Wednesday August 28, 2024 @02:53PM (#41382904)
> A List promises that if it has an element, you can remove it and have another [..]. A NonEmptyList breaks that promise.

No. Removing an element from a NonEmptyList returns a List. LSP is respected when NonEmptyList is a List.

There are no comments on this comment yet.