You are viewing a single comment's thread. Return to all comments →
Scala:
def f(arr:List[Int]) = arr filter(_ % 2 != 0) reduceLeft(_ + _)
Seems like cookies are disabled on this browser, please enable them to open this website
Sum of Odd Elements
You are viewing a single comment's thread. Return to all comments →
Scala: