Qurak

NearestTo

ใช้งานได้

Operator form of Nearest that finds the elements nearest to a value

NearestTo[x]
NearestTo[x, n]
NearestTo[x, {n, r}]
NearestTo[Red, 3][l] → Nearest[l, RGBColor[1, 0, 0], 3]NearestTo[20][{1, 2, 4, 8, 16, 32}] → {16}NearestTo[20, 3][{1, 2, 4, 8, 16, 32}] → {16, 8, 32}

หัวข้อ

ที่เกี่ยวข้อง

ฟังก์ชันทั้งหมด 6300 รายการ · ใช้สิ่งนี้จากไคลเอนต์ MCP