ResultOfPrinterExtension<R> extension

on

Methods

cast<T>() Printer<T>

Available on Printer<R>, provided by the ResultOfPrinterExtension extension

Returns a printer that accepts values of type T and casts them to R for printing.
onResultOf<T>(Map1<T, R> function) Printer<T>

Available on Printer<R>, provided by the ResultOfPrinterExtension extension

Returns a printer that accepts values of type T and invokes the provided function to transform it to type R for printing.