https://kotlinlang.org logo
#arrow
Title
# arrow
j

Johann Pardanaud

12/01/2023, 1:31 PM
Is there any reason to why we have
EitherNel
for lists but not
EitherNes
for sets? 🤔
c

CLOVIS

12/01/2023, 1:35 PM
Probably just low demand, I think it's worth creating an issue if you need it
j

Johann Pardanaud

12/01/2023, 1:39 PM
Actually, I don't really need it, but I wonder if creating a
toEitherNes()
function in #akkurate would be explicit enough. I feel like naming the function
toEitherNonEmptySet()
would be a bit too long.
well, just in case, I've created an issue: https://github.com/arrow-kt/arrow/issues/3310
a

Alejandro Serrano.Mena

12/01/2023, 3:14 PM
also
NonEmptyList
has kind of a special place because it's the one returned by
zipOrAccumulate
and
mapOrAccumulate
j

Johann Pardanaud

12/01/2023, 3:14 PM
You're right, NonEmptySet doesn't seem to be used internally by Arrow
14 Views