# Julia, <s>28</s> 27 bytes x->range(extrema(x)...)∩x ### Verification julia> f = x->range(extrema(x)...)∩x (anonymous function) julia> f([99,-2,53,4,67,55,23,43,88,-22,36,45]) 10-element Array{Int64,1}: -22 -2 4 23 36 43 45 53 55 67