option
o1.util.nice.option
object option
Provides nice extensions to the interface of scala.Option
, for convenience.
Attributes
- Graph
-
- Supertypes
- Self type
-
option.type
Members list
Extensions
Extensions
extension [Content](self: Option[Content])
def log(format: String => String, describeContent: Content => String, describeNone: => String): 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
.
Parameters
- format
-
a function that takes in a description of an
Option
and produces a report of it; defaults toidentity
- 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"
Attributes
In this article