def visitorDesignPattern[A, B](assoc: List[(A, B)], fallThrough: => B) = (a: A) => assoc find (a==_) map (_._2) getOrElse fallThrough
3:06 AM - 27 Jul 2011
0 replies
2 retweets
4 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.