Created
March 28, 2012 08:35
-
-
Save crufter/2224761 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
package main | |
func wut( x int ) int { | |
if x % 2 == 0 { | |
return 1; | |
} else { | |
return 2; | |
} | |
} | |
func main() { | |
var y int = 0 | |
for i:=0; i < 100000000; i++ { | |
y += wut( i ) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment