filter


Description:

[ Version ( since = "1.2" ) ]
public AttrList? filter (AttrFilterFunc func)

Given a AttrList and callback function, removes any elements of this for which func returns true and inserts them into a new list.

Parameters:

this

a AttrList

func

callback function; returns true if an attribute should be filtered out.

data

Data to be passed to func

Returns:

the new AttrList or null if no attributes of the given types were found.