Skip to main content

split

function

rewrite-clj.paredit/split

(split [zloc])
Return `zloc` with parent sequence split into to two sequences at current node. Location is retained. If split would result in empty seq, returns `zloc` unchanged. - `[1 2 |3 4 5] => [1 2 |3] [4 5]` - `{|:a 1 :b 2} => {|:a} {:1 :b 2}` - `#{:a |:b :c} => #{:a |:b} #{:c}` - `(foo |bar baz boo) => (foo |:bar) (baz boop)` - `[1 2 3 4 |5] => [1 2 3 4 |5]` unchanged

No examples yet. Be the first to add one!