Skip to content

Commit b8fc3be

Browse files
author
michelou
committedApr 23, 2007
changed argument in &sums
1 parent bd7866c commit b8fc3be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎test/files/run/Course-2002-02.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ object M7 {
163163
iter(a, 0)
164164
}
165165

166-
def sumInts = &sum(_)
166+
def sumInts = &sum(x => x)
167167
def sumCubes = &sum(x => x * x * x)
168168
def sumReciprocals = &sum(x => 1.0/x)
169169
def sumPi = { n: Int => 4 + sum(x => 4.0/(4*x+1) - 4.0/(4*x-1))(1, n) }

0 commit comments

Comments
 (0)
Please sign in to comment.