2 ms·
> 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 NonEmp
by sdeframond 2y ago
> 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.