Hei. I wonder if we arrow has wrappers on collection apis to always return Nel instead of List.
For example nonEmptyListOf(1, 1).distinct() will always be non empty, but because of kotlin apis, i get back List. This is uncomfortable. to ensure I am working with an nel, I often end-up converting list to nel. It would’ve been nice to not do that.
s
simon.vergauwen
04/28/2022, 3:54 PM
We don't have this out of the box.
simon.vergauwen
04/28/2022, 3:56 PM
I know this is quite annoying but without HKTs we have to redeclare every method 😕