def slice_fn(tuple_slice):
    """Makes a function that slices a list.

    Args:
        tuple_slice (`tuple`): tuple of 2 floats denoting
            the percentage at which to split the argument
            of the function.

    Returns:
        A function that slices an iterable.
    """
    return lambda l: l[slice(int(len(l) * tuple_slice[0]), int(len(l) * tuple_slice[1]))]