Endo

final case
class Endo[A](run: A => A)

Endomorphisms. They have special properties among functions, so are captured in this newtype.

Value Params
run

The captured function.

Companion
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

final
def andThen(other: Endo[A]): Endo[A]

Call other with my result.

Call other with my result.

final
def apply(a: A): A
final
def compose(other: Endo[A]): Endo[A]

Do other, than call myself with its result.

Do other, than call myself with its result.

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product