Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. psp> val xs = "abcdefghijklmnopqrstuvwxyz"
  2. xs: String = abcdefghijklmnopqrstuvwxyz
  3.  
  4. psp> xs filter ((_: Char) >= 'c') && (_ < 'f') || (_ == 'q')
  5. res10: View[Char] = [ c, d, e, q ]
  6.  
  7. psp>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement