I am learning Scala and lift at the same time, and I am stuck in understanding the syntax used to initialize SiteMap in Boot.scala:
val entries = Menu(Loc("Home", "/", "Home")) :: Menu(Loc("Foo", "/badger", "Foo")) :: Menu(Loc("Directory Foo", "/something/foo", "Directory Foo")) :: Nil LiftRules.setSiteMap(SiteMap(entries:_*))
What exactly does the SiteMap parameter mean? I see that the values ββare a list of menus. What is a colon, underscore, star ? At first I thought it was a method on the List, but I could not find such a definition ...
scala lift
Palimondo Jul 14 '09 at 8:06 2009-07-14 08:06
source share