Merge remote-tracking branch 'upstream/master' into julia-jp

This commit is contained in:
Yuichi Motoyama 2014-12-22 14:43:50 +09:00
commit 0aeef25115

View File

@ -476,7 +476,7 @@ sSquared.reduce (_+_)
// The filter function takes a predicate (a function from A -> Boolean) and // The filter function takes a predicate (a function from A -> Boolean) and
// selects all elements which satisfy the predicate // selects all elements which satisfy the predicate
List(1, 2, 3) filter (_ > 2) // List(3) List(1, 2, 3) filter (_ > 2) // List(3)
case class Person(name:String, phoneNumber:String) case class Person(name:String, age:Int)
List( List(
Person(name = "Dom", age = 23), Person(name = "Dom", age = 23),
Person(name = "Bob", age = 30) Person(name = "Bob", age = 30)