Quantcast
Channel: User Burhanuddin Sunelwala - Stack Overflow
Viewing all articles
Browse latest Browse all 36

Answer by Burhanuddin Sunelwala for Declaring parameters of same type in a function at once

$
0
0

Well, that is not something which is built-in in Swift.But the most near to it you can use is Tuples

func floatValues(values: (CGFloat, CGFloat, CGFloat)) {  first = values.0  second = values.1  third = values.2}

Viewing all articles
Browse latest Browse all 36

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>