from typing import Iterable
from typing import Any


def to_tuples(l:Iterable[Any], key_f=lambda x:x, val_f=lambda x:x)->Iterable[tuple]:
    """Apply functions on each item to generate tuples of key and value pairs
    """
    return ((key_f(i), val_f(i)) for i in l)