Guest User

Untitled

a guest
Apr 29th, 2013
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.18 KB | None | 0 0
  1.  def filterAcc(p: Tweet => Boolean, acc: TweetSet): TweetSet = {
  2.    def newacc = if (p(elem)) (acc incl elem) else acc
  3.    left.filterAcc(p,newacc)
  4.    right.filterAcc(p,newacc)
  5.  
  6.   }
Advertisement
Add Comment
Please, Sign In to add comment