Qurak

CountDistinctBy

Available

Counts distinct values of a function applied to each element

CountDistinctBy[{e1, e2, …}, f]
CountDistinctBy[f]
CountDistinctBy[{{a, x}, {a, y}, {b, z}}, First] → 2CountDistinctBy[{1, 2, 3, -2, -3}, Abs] → 3

Topics

Related

All 6300 functions · Use this from an MCP client