from typing import Sequence
from typing import Generator


def dictionize(fields: Sequence, records: Sequence) -> Generator:
    """Create dictionaries mapping fields to record data."""

    return (dict(zip(fields, rec)) for rec in records)