scalax.data

object AsInt

[source: scalax/data/AsInt.scala]

object AsInt
extends AnyRef
Converts strings to integers as part of a pattern match, e.g.:
     "42" match {
         case AsInt(x) => println(x + 5)
     }
 
Method Summary
def unapply (s : java.lang.String) : scala.Option[Int]
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
def unapply(s : java.lang.String) : scala.Option[Int]


Copyright (c) 2005-8 The Scalax Project. All Rights Reserved.