Skip to content

Group.GetMaxGroup

Source Code | Usage Examples | Group Functions

Create a new group with members from another group (Group g) which has the maximum result from f(c,...). Function f accepts at least one parameter (f(c,...), with c as each member of the group), and the return value should be integer, if the group g have no element, that function will return nil.

Signature

Group.GetMaxGroup(Group g, function f, any ...) → Group, int|nil

lua
g:GetMaxGroup(f,...)

Parameters

Returns


under-construction