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
)
Writes the textual representations of
items
, separated byseparator
and terminated byterminator
, into the standard output.The textual representations are obtained for each
item
via the expressionString(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
)