def splitAt(n, xs):
    """``splitAt :: Int -> [a] -> ([a], [a])``

    Returns a tuple where first element is `xs` prefix of length `n` and
    second element is the remainder of the list.

    """
    return xs[:n], xs[n:]