Function: -split-on
-split-on is a macro defined in dash.el.
Signature
(-split-on ITEM LIST)
Documentation
Split the LIST each time ITEM is found.
Unlike -partition-by, the ITEM is discarded from the results.
Empty lists are also removed from the result.
Comparison is done by equal.
See also -split-when
Source Code
;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defmacro -split-on (item list)
"Split the LIST each time ITEM is found.
Unlike `-partition-by', the ITEM is discarded from the results.
Empty lists are also removed from the result.
Comparison is done by `equal'.
See also `-split-when'"
(declare (debug (def-form form)))
`(-split-when (lambda (it) (equal it ,item)) ,list))