Skip to content

Commit

Permalink
update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
erees1 committed Dec 5, 2023
1 parent de1b846 commit bb53647
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion slist/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,8 @@ def split_by(self, predicate: Callable[[A], bool]) -> Tuple[Slist[A], Slist[A]]:
return left, right

def split_on(self, predicate: Callable[[A], bool]) -> Slist[Slist[A]]:
"""Splits the list into lists of non empty lists"""
"""Splits the list into sections based on the predicate,
items matching the predicate are not included in the output"""
output = Slist[Slist[A]]()
current = Slist[A]()
for item in self:
Expand Down

0 comments on commit bb53647

Please sign in to comment.