import typing


def contains_ignorecase(s: str, i: typing.Iterable[str]) -> bool:
    """
    Return whether the string s is in i when case is ignored.
    """
    return s.casefold() in (t.casefold() for t in i)