Created
April 24, 2016 05:33
-
-
Save goodmorningcody/ceb3fba7423e235f206c7ca2368e9310 to your computer and use it in GitHub Desktop.
스위프트 : 매개변수 타입으로의 튜플
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func calcRectArea(rect:(width:Float, height:Float)) -> Float { | |
return rect.width*rect.height | |
} | |
calcRectArea((width:100, height:200)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment