def split_list(l, size):
    """Split a list into evenly sized chunks

    Parameters
    ----------
    l : list
        The list to split
    size : n
        The size of each chunk

    Returns
    -------
    A list of sub-lists

    Examples
    --------
    >>> from fnss.util import split_list
    >>> split_list([1, 2, 3, 4, 5, 6], 2)
    [[1, 2], [3, 4], [5, 6]]
    """
    return [l[i: i + size] for i in range(0, len(l), size)]