Skip to content

Group.Filter

Source Code | Usage Examples | Group Functions

Creates a new Group with Cards from an original Group that pass a CardFilter.

Signature

Group.Filter(Group g, CardFilter filter, Group|Card|nil exc, any ...) → Group

lua
g:Filter(filter,exc,...)

Parameters

  • Group g

    The Group to filter.

  • CardFilter filter

    The function that must return true for a Card to be part of the new Group.

  • Group|Card|nil exc

    The Cards to be excluded from the new Group.

  • any ...

    Additional arguments that will be passed to filter.

Returns