Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Aug 20th, 2018
81
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.16 KB
| None
|
0
0
raw
download
clone
embed
print
report
def apples = ['A','C','D','Q','X']
def oranges = ['A','B','E','Q']
def nonShared = apples + oranges - apples.intersect(oranges)
// results in [B, C, D, E, X]
Add Comment
Please,
Sign In
to add comment
Public Pastes
Let The Money Flow
CSS | 2 hours ago | 0.37 KB
Untitled
CSS | 2 hours ago | 0.34 KB
MAGA250
10 hours ago | 1.48 KB
Nightlight - Imprisoning Pitch
19 hours ago | 0.54 KB
Ombric - Astral Projection
19 hours ago | 0.77 KB
Katherine/Nightlight - Reindeer
20 hours ago | 1.03 KB
Djinni - Swords
20 hours ago | 0.44 KB
Djinni - Limits
20 hours ago | 0.62 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!