Java:
public Static int myFunction(int n){
...
}
Swift:
import UIKit
var str = "Hello, playground"
print(str)
Static func (n: Int) -> Intdo {
}
xcode issues these: Use of unresolved identifier 'Static' Top-level statement cannot begin with a closure expression Expected identifier in function declaration Consecutive statements on a line must be separated by ';' Did you mean to use a 'do' statement? Closure expression is unused