IdOps

final
class IdOps[A](self: A) extends AnyVal
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

final
def ??(d: => A)(implicit ev: Null <:< A): A

Returns self if it is non-null, otherwise returns d.

Returns self if it is non-null, otherwise returns d.

@inline
def ?|>(p: A => Boolean, f: A => A): A

Applies self to the provided function if the predicate is satisfied, otherwise return self.

Applies self to the provided function if the predicate is satisfied, otherwise return self.

@inline
def applyIf(p: A => Boolean)(f: A => A): A

Applies self to the provided function if the predicate is satisfied, otherwise return self.

Applies self to the provided function if the predicate is satisfied, otherwise return self.

final
def doWhile(f: A => A, p: A => Boolean): A

Repeatedly apply f, seeded with self, checking after each iteration whether the predicate p holds.

Repeatedly apply f, seeded with self, checking after each iteration whether the predicate p holds.

@inline
final
def into[B](f: A => B): B

Alternative syntax for the Thrush combinator or a total match.

Alternative syntax for the Thrush combinator or a total match.

def matchOrZero[B : Monoid](pf: PartialFunction[A, B]): B
Returns

the result of pf(value) if defined, otherwise the Zero element of type B.

final
def squared: (A, A)
def visit[F[_] : Applicative](p: PartialFunction[A, F[A]]): F[A]

If the provided partial function is defined for self run this, otherwise lift self into F with the provided scalaz.Applicative.

If the provided partial function is defined for self run this, otherwise lift self into F with the provided scalaz.Applicative.

final
def whileDo(f: A => A, p: A => Boolean): A

Repeatedly apply f, seeded with self, checking before each iteration whether the predicate p holds.

Repeatedly apply f, seeded with self, checking before each iteration whether the predicate p holds.

final
def |>[B](f: A => B): B

Applies self to the provided function. The Thrush combinator.

Applies self to the provided function. The Thrush combinator.

final
def [B](f: A => B): B

Applies self to the provided function. The Thrush combinator.

Applies self to the provided function. The Thrush combinator.