Re:Typing Lists and Tuples in Elixir
by derriz on Wednesday August 28, 2024 @03:00PM
(#41382984)
Why not in the other direction? If NonEmptyList inherits from List, then head (and tail) would be methods of NonEmptyList but not of List.
[ Parent
| on HN ]
There are no comments on this comment yet.