Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Check if list A contains any item of list B
Chashitsu
May 19th, 2018
140
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C#
0.10 KB
| None
|
0
0
raw
download
clone
embed
print
report
var
A
=
new
int
[
]
{
1
,
3
,
5
}
;
var
B
=
new
int
[
]
{
5
,
6
}
;
if
(
A
.
Intersect
(
B
)
.
Any
(
)
)
{
// do something
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 5 min ago | 0.39 KB
Жизнь прижок скорость
Lua | 8 min ago | 4.00 KB
Roman2Integer x2
Java | 11 min ago | 1.50 KB
ЛР2 ООП
C++ | 16 min ago | 3.58 KB
le sigh
JavaScript | 21 min ago | 12.63 KB
auto Backward Elim
R | 27 min ago | 0.51 KB
Untitled
SQL | 47 min ago | 1.71 KB
weapon_script
GDScript | 56 min ago | 16.67 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!