Skip to main content

NearestTo

NearestTo[x] is an operator form that yields Nearest[elems,x] when applied to a list elems.

NearestTo[x,n] is an operator form that yields Nearest[elems,x,n] when applied to a list elems.

NearestTo[x,{n,r}] is an operator form that yields Nearest[elems,x,{n,r}] when applied to a list elems.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.