|
Scala
1.4.0.3 |
|||
Option
are either instances of case class Some
or it is case
object None
.
Method Summary | |
def elements: Iterator[A]
Creates a new iterator over all elements contained in this object. |
|
def filter(p: (A) => Boolean): Option[A]
|
|
def flatMap[B](f: (A) => Option[B]): Option[B]
|
|
override
|
def foreach(f: (A) => Unit): Unit
Apply a function f to all elements of this
iterable object.
|
def get: A
|
|
def get[B >: A](default: B): B
|
|
def isEmpty: Boolean
|
|
def map[B](f: (A) => B): Option[B]
|
|
def toList: List[A]
|
Methods inherited from java/lang/Object-class |
clone, eq, equals, finalize, getClass, hashCode, ne, notify, notifyAll, synchronized, toString, wait, wait, wait |
Methods inherited from scala/Any-class |
!=, ==, asInstanceOf, isInstanceOf, match |
Methods inherited from scala/Iterable-class |
/:, :\, concat, exists, find, foldLeft, foldRight, forall, sameElements |
Methods inherited from scala/ScalaObject-class |
getScalaType |
Method Detail |
def isEmpty: Boolean
def get: A
def get[B >: A](default: B): B
def map[B](f: (A) => B): Option[B]
def flatMap[B](f: (A) => Option[B]): Option[B]
def filter(p: (A) => Boolean): Option[A]
override def foreach(f: (A) => Unit): Unit
f
to all elements of this
iterable object.
f
-
a function that is applied to every element.
def elements: Iterator[A]
def toList: List[A]
|
Scala
1.4.0.3 |
|||