News for hackers. Stuff that matters.
Re:Becoming Productive in Haskell by tormeh on Friday April 24, 2015 @09:39AM (#9433174)
Scala programmer here.

  class Container(val property:Int)

  val list:List[Container]
  val mappedlist:List[Int] = list.map(x=>x.property)

  val option:Option[Container]
  val mappedOption:Option[Int] = option.map(x=>x.property)
It works in exactly the same way...

There are no comments on this comment yet.