Comment Comment by greener_grass > You can take a List inherited from the NonEmptyListShouldn't it go the other way?All NonEmptyLists are Lists, but not all Lists are NonEmptyList.So NonEmptyList inherits from List parent greener_grass 2 years ago
Shouldn't it go the other way?
All NonEmptyLists are Lists, but not all Lists are NonEmptyList.
So NonEmptyList inherits from List