Group.Filter
Source Code | Usage Examples | Group
Functions
Creates a new Group
with Card
s 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 aCard
to be part of the newGroup
.Group|Card|nil
exc
The
Card
s to be excluded from the newGroup
.any
...
Additional arguments that will be passed to
filter
.