scala - How to define a type that corresponds to Map[String, Option[String]]? -
given following method takes map[string, option[string]]
parameter:
def mymethod(m: map[string, option[string]]) = { ... }
how define new type mymap
implements map[string, option[string]]
method looks this:
def mymethod(m: mymap) = { ... }
type mymap = map[string, option[string]]
Comments
Post a Comment