Hi @cvogt,
I know you don't have much time for compossible atm, but maybe you could give me a hint on how one could destructure a TMap when using typeclasses.
I've put up an example project and the problematic case (it's only a few lines) is here:
https://github.com/nightscape/scala-destructure-tmap/blob/master/src/main/scala/TMapDeconstruction.scala
I'm trying to extract multiple keys out of a TMap and processing them with type-classes and had hoped I could split up a TMap[Int with String] into an Int and a String in a generic way, but the compiler seems to split it up into a Int with String and something else.
I would be happy even if you could just throw me some terms to search for, I don't even know what the correct term for the Int with String part is...
Thanks a lot!
Martin
Hi @cvogt,
I know you don't have much time for compossible atm, but maybe you could give me a hint on how one could destructure a TMap when using typeclasses.
I've put up an example project and the problematic case (it's only a few lines) is here:
https://github.com/nightscape/scala-destructure-tmap/blob/master/src/main/scala/TMapDeconstruction.scala
I'm trying to extract multiple keys out of a TMap and processing them with type-classes and had hoped I could split up a
TMap[Int with String]into anIntand aStringin a generic way, but the compiler seems to split it up into aInt with Stringand something else.I would be happy even if you could just throw me some terms to search for, I don't even know what the correct term for the
Int with Stringpart is...Thanks a lot!
Martin