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

asp.net mvc - SSO between MVCForum and Umbraco7 -

python - Exception while importing pymorphy2 -

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