Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (10 sloc) 186 Bytes
// Simple benchmark for littlelang -- tests a for loop and function calls
func add(a, b) {
return a + b
}
n = int(args()[0])
s = 0
for i in range(n) {
s = add(s, i)
}
print(s)