send_the_raven.utils.split_into_n_elements#

send_the_raven.utils.split_into_n_elements(data, n_element=5)[source]#

Split iterable into n_element lists.

Parameters:
  • data (Iterable[T]) – Iterable to be slice.

  • n_element (int) – how many element will be in each list

Returns:

list of list with n_element

Return type:

list[list[T]]