Generated with
This document is part of the ebook for O1 (aka CS-A1110 Programming 1), a course at Aalto University.
This document is part of the ebook for O1 (aka CS-A1110 Programming 1), a course at Aalto University.
o1.util.nice$.option$
Provides nice extensions to the interface of scala.Option
, for convenience.
Attributes
-
Graph
-
-
Supertypes
-
-
Self type
-
Members list
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
-
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 Option
and produces a report of it; defaults to identity
Attributes
Performs a given side effect on the Option
’s contents (if any). Returns the Option
as is.
Performs a given side effect on the Option
’s contents (if any). Returns the Option
as is.
Attributes