More More println() According to the apple documentation :
In Swift 2.0 there is
print("Hello")
for a new line you can set a flag
print("Hello", appendNewline: false)
Statement
func print (_ value: T, appendNewline appendNewline: Bool)
Discussion
The textual representation is obtained from the value using its protocols in the following order of preference: Streamable, CustomStringConvertible, CustomDebugStringConvertible. If none of these matches are found, the default text representation is constructed in a specific way, based on the type and structure.
Ashish kakkad
source share