Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/scala/stdlib/PartiallyAppliedFunctions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ object PartiallyAppliedFunctions
/** Currying allows you to create specialized versions of generalized functions:
*/
def specializedVersionPartiallyAppliedFunctions(res0: List[Int], res1: List[Int]) {
def customFilter(f: Int Boolean)(xs: List[Int]) =
def customFilter(f: Int => Boolean)(xs: List[Int]) =
xs filter f
def onlyEven(x: Int) = x % 2 == 0
val xs = List(12, 11, 5, 20, 3, 13, 2)
Expand Down