fp-ts-std
fp-ts-std copied to clipboard
Other non-empty containers
https://hackage.haskell.org/package/nonempty-containers NESet, NEMap. Probably call the prefix NonEmpty for consistency with arrays.
Will require newtypes unlike NonEmptyArray.
String too.
NonEmptyString: https://github.com/samhh/fp-ts-std/commit/198cb9d20258f741e62125553928ec32de9de1d5
I've been a bit lazy about porting the examples and the various utilities. Contributions welcome :angel: