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

Popular posts from this blog

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -