Advertisement
Guest User

Untitled

a guest
Feb 27th, 2015
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. scala> List(1,2,3,4).filter((_ % 2) == 0)
  2. <console>:8: error: missing parameter type for expanded function ((x$1) => x$1.$percent(2))
  3. List(1,2,3,4).filter((_ % 2) == 0)
  4.  
  5. scala> List(1,2,3,4).filter(_ % 2 == 0)
  6. res1: List[Int] = List(2, 4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement