Declare a function

 Problem

I want to declare a new function and call it.



 Recipe


// Declare our new function
func myFunc() {
    print("Hello from myFunc!")
}

// Call it
myFunc()


				


 Playground