Hacker News new | ask | show | jobs
by tvorryn 5316 days ago
I think you mean:

; println(myList)

i.e. reorder those and add a semicolon or put it on the next line

and I agree with pivo that "Jim" :: "Bob" :: Nil should be List("Jim", "Bob"). I'm not sure if these are the same as _Y_'s Fantom code, but both of these print out "List(Jim, Bob)" in Scala.