Vyxapedia

Element - øe - Run Length Encoding

Characters: ø, e


Description

Run length encoding, convert from string/list to list of items and amount repeated.


Overloads

  • str - run_length_encoded(a)

Examples

  • `abc` øe = ⟨⟨`a`|1⟩|⟨`b`|1⟩|⟨`c`|1⟩⟩
  • `aaa` øe = ⟨⟨`a`|3⟩⟩
  • ⟨1|1|2|2|2|3|3|3|3|3⟩ øe = ⟨⟨1|2⟩|⟨2|3⟩|⟨3|5⟩⟩
  • 1122233333 øe = ⟨⟨1|2⟩|⟨2|3⟩|⟨3|5⟩⟩