option
object option
Provides nice extensions to the interface of scala.Option, for convenience.
Extensions
Extensions
extension [Content](self: Option[Content])
Prints out a report of the Option’s contents (if any). Returns the unmodified Option.
Prints out a report of the Option’s contents (if any). Returns the unmodified Option.
- Value parameters:
- describeContent
a function that takes in an
Option’s contents and produces a description of it; defaults to_.toString- describeNone
a description of an empty
Option; defaults to"None"- format
a function that takes in a description of an
Optionand produces a report of it; defaults toidentity
