print

func print(_: Any..., separator: String, terminator: String)

Writes the textual representations of items, separated by separator and terminated by terminator, into the standard output.

The textual representations are obtained for each item via the expression String(item).

Note: To print without a trailing newline, pass terminator: ""

See Also: debugPrint, Streamable, CustomStringConvertible, CustomDebugStringConvertible

Declaration

func print(items: Any..., separator: String = default, terminator: String = default)
func print<Target : OutputStreamType>(_: Any..., separator: String, terminator: String, inout toStream: Target)

Writes the textual representations of items, separated by separator and terminated by terminator, into output.

The textual representations are obtained for each item via the expression String(item).

Note: To print without a trailing newline, pass terminator: ""

See Also: debugPrint, Streamable, CustomStringConvertible, CustomDebugStringConvertible

Declaration

func print<Target : OutputStreamType>(items: Any..., separator: String = default, terminator: String = default, inout toStream output: Target)