Guest User

Untitled

a guest
Aug 20th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. def apples = ['A','C','D','Q','X']
  2. def oranges = ['A','B','E','Q']
  3.  
  4. def nonShared = apples + oranges - apples.intersect(oranges)
  5.  
  6. // results in [B, C, D, E, X]
Add Comment
Please, Sign In to add comment