cf.List.iter

List.iter(name, *args, **kwargs)[source]

Return an iterator over the results of a method applied to each element.

fl.iter(name, *args, **kwargs) is an equivalent to iter(f.name(*args, **kwargs) for f in fl).

Parameters :
name : str

The name of the method to apply to each element.

args, kwargs : optional

The arguments to be used in the call to the named method.

Returns :
out : generator

An iterator over the results of the named method applied to each element.

See also

method

Previous topic

cf.List.index

Next topic

cf.List.method

This Page