fp-ts-std icon indicating copy to clipboard operation
fp-ts-std copied to clipboard

Other non-empty containers

Open samhh opened this issue 3 years ago • 3 comments

https://hackage.haskell.org/package/nonempty-containers NESet, NEMap. Probably call the prefix NonEmpty for consistency with arrays.

samhh avatar Aug 09 '22 11:08 samhh

Will require newtypes unlike NonEmptyArray.

samhh avatar Aug 09 '22 11:08 samhh

String too.

samhh avatar Aug 10 '22 10:08 samhh

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:

samhh avatar Sep 03 '22 13:09 samhh