Vyxapedia

Element - - Split And Keep Delimiter

Characters:


Description

Split a value and keep the delimiter


Overloads

  • any-any - a.split_and_keep_delimiter(b) (split and keep the delimiter)
  • fun-any - apply a to every second item of b starting on the first item

Examples

  • `a b c` ` ` Ẇ = ⟨`a`|` `|`b`|` `|`c`⟩
  • `xyzabc123abc` `b` Ẇ = ⟨`xyza`|`b`|`c123a`|`b`|`c`⟩
  • -1231234.5 4 Ẇ = ⟨2|4|62|4|34.5⟩
  • ⟨1|2|3|4|3|2|1|4⟩ 4 Ẇ = ⟨⟨1|2|3⟩|⟨4⟩|⟨3|2|1⟩|⟨4⟩|⟨⟩⟩
  • ⟨⟩ 4 Ẇ = ⟨⟨⟩⟩