Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Mar 17th, 2012  |  syntax: Scala  |  size: 0.25 KB  |  hits: 39  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. import scala.collection.JavaConversions._
  2.  
  3. class ObjectWithAgenda_(owa: ObjectWithAgenda) {
  4.   def addAppointment = owa.addAppointment _
  5.   def removeAppointment = owa.removeAppointment _
  6.   def getAgenda = asList(owa.getAgenda.map(new Appointment_(_)))
  7. }