arrow-core-data / arrow.typeclasses / Show

Show

interface Show<in A>

A type class used to get a textual representation for an instance of type A in a type safe way.

Functions

show Given an object this@show of type A it returns its textual representation.abstract fun A.show(): String

Companion Object Functions

any Retrieve a Show that defines the textual representation as toString() for type A.fun any(): Show<Any?>
fromToString Construct a Show instance using object toString.fun <A> fromToString(): Show<A>
invoke Construct a Show instance from a function A.() -> Stringoperator fun <A> invoke(fshow: A.() -> String): Show<A>

Type Class Hierarchy

Do you like Arrow?

Arrow Org
<