Split a list into contiguous runs of elements which pairwise satisfy a relation. #
This file provides the basic API for List.splitBy which is defined in Core.
The main results are the following:
List.join_splitBy: the lists inList.splitByjoin to the original list.List.nil_notMem_splitBy: the empty list is not contained inList.splitBy.List.chain'_of_mem_splitBy: any two adjacent elements in a list inList.splitByare related by the specified relation.List.chain'_getLast_head_splitBy: the last element of each list inList.splitByis not related to the first element of the next list.
@[deprecated _private.Mathlib.Data.List.SplitBy.0.List.nil_notMem_splitByLoop (since := "2025-05-23")]
theorem
List.nil_not_mem_splitByLoop
{α : Type u_1}
{r : α → α → Bool}
{l : List α}
{a : α}
{g : List α}
:
Alias of _private.Mathlib.Data.List.SplitBy.0.List.nil_notMem_splitByLoop.
@[deprecated List.flatten_splitBy (since := "2024-10-30")]
Alias of List.flatten_splitBy.
@[deprecated List.chain'_getLast_head_splitBy (since := "2024-10-30")]
Alias of List.chain'_getLast_head_splitBy.