Qurak

TakeSmallestBy

利用可能

Returns the `n` smallest elements of a list by a key function.

TakeSmallestBy[data, f, n]
TakeSmallestBy[data -> prop, f, n]
TakeSmallestBy[data, f, n, p]
TakeSmallestBy[f, n]
TakeSmallestBy[{1, -3, 2, -4, 5}, Abs, 2] → {1, 2}TakeSmallestBy[Abs, 2][{-3, 1, -8, 4}] → {1, -3}

トピック

関連

全 6300 関数 · MCPクライアントから使う