from typing import Iterable


def filter_f_eq(f: str, eq_to: object, it: Iterable) -> filter:
    """

    :param f: a name of an function we expect to find on items in it
    :param eq_to: any comparable value
    :param it: any iterable
    :return: filter object with all x in it such as x.f() == eq_to
    """
    return filter(lambda x: getattr(x, f)() == eq_to, it)