# Intersection between a discrete set and a continuous set

I have two sets:

$A=\{x| |x|<2\}, B=\{1,2,3\}$

and I know

A=Interval[{-2,2}]
B={1,2,3}


but

A \[Intersection] B


can not execute.

• Select[B, IntervalMemberQ[A, #] &] – corey979 Dec 1 '16 at 2:14
• Never use upper-case letters for variables, sets, etc., as they may conflict with Mathematica's system names. – David G. Stork Dec 1 '16 at 2:37