Scala return type

I have it as a return type in Scala

 Map[String, Seq[Map[String, Seq[MyClass]]]]

I need to use this in several places in my code, is there a way to assign this to a sort constant and use a constant rather than explicitly specifying it?

+5
source share
1 answer

Yes, you can define an alias of type c type Foo = Map[...].

+12
source

All Articles