filter_and_map_in_place
Description:
Calls the provided function once for each field in the Structure.
In contrast to @foreach, the function may modify the fields. In
contrast to map_in_place, the field is removed from the structure if
false
is returned from the function. The structure must be mutable.
Parameters:
this | |
func |
a function to call for each field |
user_data |
private data |