Comment

Comment by greener_grass

> You can take a List inherited from the NonEmptyList

Shouldn't it go the other way?

All NonEmptyLists are Lists, but not all Lists are NonEmptyList.

So NonEmptyList inherits from List

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton