example function
func example(titles: [String]) `->` [UIButton] {
}
and where could i find more docs on this topic (docs relevant to functions declaring in swift)?
example function
func example(titles: [String]) `->` [UIButton] {
}
and where could i find more docs on this topic (docs relevant to functions declaring in swift)?
There is no
>in swift function declarations - someone botched up the HTML rendering in the page you were reading. It was supposed to be->(an arrow made up of a hypen and the greater than operator) that's used to denote the return type of the function.The text was supposed to read
Which means the
examplefunction has one parameter calledtitlesof type[String](array of String) and it returns a[UIButton](array of UIButton).