Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
array_split solution in 3rd party category for Split List by belokr
from typing import Any, Iterable
import numpy as np
def split_list(items: list[Any]) -> Iterable[list[Any]]:
return [list(a) for a in np.array_split(items, 2)]
March 7, 2023