FP_Cross
This is an 2.11-specific appendix to FP
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
FP_Cross.type
Members list
Value members
Concrete methods
Type parameters
- X
-
the underlying type
Value parameters
- ox
-
the given Option
- x
-
the value we want to compare with ox
Attributes
- Returns
-
true if ox is Some(x)
TODO unit test
TODO unit test
Method to map a pair of Try values (of same underlying type) into a Try value of another type (which could be the same of course)
Type parameters
- T
-
the input type
- U
-
the result type
Value parameters
- default
-
(implicit) a default value
- f
-
function which takes two T parameters and yields a U result
- g
-
(implicit) guard function which, given the first parameter's value, must be true for the second parameter (ty2) to be evaluated
- ty1
-
a Try[T] value
- ty2
-
a Try[T] value passed as call-by-name
Attributes
- Returns
-
a Try[U]
TODO unit test
TODO unit test
Method to map a pair of Try values (of same underlying type) into a Try value of another type (which could be the same of course)
Type parameters
- T
-
the input type
- U
-
the result type
Value parameters
- default
-
(implicit) a default value
- f
-
function which takes two T parameters and yields a U result
- g
-
(implicit) guard function which, given the first parameter's value, must be true for the second parameter (ty2) to be evaluated; and which, given the second parameter's value, must be true for the third parameter (ty3) to be evaluated
- ty1
-
a Try[T] value
- ty2
-
a Try[T] value passed as call-by-name
- ty3
-
a Try[T] value passed as call-by-name
Attributes
- Returns
-
a Try[U]