8.2.10 匿名函数

我们也可以使用匿名函数来实现这个predicate函数:

1. list.filter((fun(x: Int): Boolean {
2. return x % 2 == 1
3. }))