Fixed test data for new lambda syntax
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ tailRecursive fun <T, A> Iterator<T>.foldl(acc : A, foldFunction : (e : T, acc :
|
||||
else foldl(foldFunction(next(), acc), foldFunction)
|
||||
|
||||
fun box() : String {
|
||||
val sum = (1..1000000).iterator().foldl(0) { (e : Int, acc : Long) ->
|
||||
val sum = (1..1000000).iterator().foldl(0) { e : Int, acc : Long ->
|
||||
acc + e
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user