Skip to content

Comment on Scala Feels like EJB 2 parent

Comments

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.