from typing import List
from typing import Callable
from typing import Iterable


def projection(keys: List[str]) -> Callable[[Iterable], Iterable]:
    """Return a lambda that filters only the selected keys"""
    return lambda xlist: [{k: item[k] for k in keys} for item in xlist]