print

@inline(never) func print<T>(_: T)

Writes the textual representation of value into the standard output.

The textual representation is obtained from the value using its protocol conformances, in the following order of preference: Streamable, Printable, DebugPrintable.

Do not overload this function for your type. Instead, adopt one of the protocols mentioned above.

Declaration

@inline(never) func print<T>(value: T)
@inline(never) func print<T, TargetStream : OutputStreamType>(_: T, inout: TargetStream)

Writes the textual representation of value into the stream target.

The textual representation is obtained from the value using its protocol conformances, in the following order of preference: Streamable, Printable, DebugPrintable.

Do not overload this function for your type. Instead, adopt one of the protocols mentioned above.

Declaration

@inline(never) func print<T, TargetStream : OutputStreamType>(value: T, inout target: TargetStream)