2019-04-10-12-Swift5
Testing interger multiples
Output:
It's multiple of 5Escaping Raw strings
var rawText = #"""
Hey! I can write anything "here"
without using double double quotes \#(someNumber)
"""#Output:
Hey! I can write anything "here"
without using double double quotes 10isNumber to check a char value
var text = "SK10"
for char in text {
print("Is '\(char)' number? \(char.isNumber)")
}Use 'KeyValuePairs' instead 'DictionaryLiteral'
compactMapValues
compactMapValuesFuture Enum cases
Last updated
Was this helpful?