I cant seem to find out how to do println() in Swift 2.
I tried doing println(helloworld)
That doesn't work
helloworld is a variable
No More println() As per apple documentation :
In Swift 2.0 there is
print("Hello")
for the new line you can set flag
print("Hello", appendNewline: false)
Declaration
func print(_ value: T, appendNewline appendNewline: Bool)
Discussion
The textual representation is obtained from the value using its protocol conformances, in the following order of preference: Streamable, CustomStringConvertible, CustomDebugStringConvertible. If none of these conformances are found, a default text representation is constructed in an implementation-defined way, based on the type kind and structure.
it's print("hello world"). it's changed in swift 2.0 and you need to see Apple's website. put print() instead of println()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With