Identityx

org.specs2.fp.Identityx
See theIdentityx companion object
trait Identityx

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Identityx.type
object syntax.type

Members list

Extensions

Extensions

extension [T](t: => T)
def orWhen(condition: Boolean)(f: T => T): T

These extension methods provide the possibility to execute a function on an object if a condition is true If not, the object is returned

These extension methods provide the possibility to execute a function on an object if a condition is true If not, the object is returned

Attributes

extension [S <: T, T](t: => S)(using evidence$1: Monoid[T])
def orEmptyUnless(condition: Boolean): T
extension [S <: T, T](t: => S)(using evidence$2: Monoid[T])
def orEmptyWhen(condition: Boolean): T