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

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -