I have something like:
List(CustomType(NonEmptyList(Error(Bar(b,4,c)))), CustomType(NonEmptyList(Error(Bar(a,6,z)))))
I'm trying to flatten it to get:
List(Error(Bar(b,4,c)), Error(Bar(a,6,z)))
I tried using flatten
but I run into an issue with implicit not being found and I can't find a way to write an implicit.
I apologize if a similar question has been asked before but I couldn't find answers to solve this issue.