def length_at_least(n):
    """Returns a function that checks whether a list has length at least ``n``.

    Args:
        n: The length to check against.

    Returns:
        A function that takes in a list ``l`` and returns ``True`` if
        ``len(l)`` is greater than or equal to ``n``.
    """
    return lambda l: len(l) >= n
