Created
January 23, 2019 00:32
-
-
Save chardos/04c2a43df02e4b9f042da79a87c7daa6 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 (r rect) perim() float64 { | |
return 2*r.width + 2*r.height | |
} | |
// This means implementing perim on rect |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment