AbstractPartialFunction reformulates all operations of its supertrait PartialFunction
in terms of isDefinedAt and applyOrElse.
AbstractPartialFunction reformulates all operations of its supertrait PartialFunction
in terms of isDefinedAt and applyOrElse.
This allows more efficient implementations in many cases:
orElse method supports chained orElse in linear time,
and with no slow-down if the orElse part is not needed.lift method helps to avoid double evaluation of pattern matchers & guards
of partial function literals.This trait is used as a basis for implementation of all partial function literals.
2.10
Base classes for the Rich* wrappers of the primitive types.
Base classes for the Rich* wrappers of the primitive types. As with all classes in scala.runtime.*, this is not a supported API.
2.9
2.9
This interface is intended as a minimal interface, not complicated by the requirement to resolve type constructors, for implicit search (which only needs to find an implicit conversion to Traversable for our purposes.)
See comment on ZippedTraversable2
(Since version 2.11.0) Use Throwable#getStackTrace
(Since version 2.11.0) Use Predef.SeqCharSequence
A wrapper class that adds a formatted operation to any value
A wrapper class that adds a formatted operation to any value
(Since version 2.11.0) Use Predef.StringFormat