Printer

public protocol Printer

A protocol which is able to express custom values as Strings

  • Converts its input parameter to a String value

    Declaration

    Swift

    func print(_ input: Any) -> String

    Parameters

    input

    The value to print

    Return Value

    The converted String instance