Vyxapedia

Element - Ċ - Counts

Characters: Ċ


Description

Returns a list of [item, count of item in the top of stack]


Overloads

  • any - [[x, a.count(x)] for x in a]

Examples

  • ⟨1|2|2|3|3|3|3⟩ Ċ = ⟨⟨1|1⟩|⟨2|2⟩|⟨3|4⟩⟩
  • 1232333 Ċ = ⟨⟨1|1⟩|⟨2|2⟩|⟨3|4⟩⟩
  • `Hello, World!` Ċ = ⟨⟨`H`|1⟩|⟨`e`|1⟩|⟨`l`|3⟩|⟨`o`|2⟩|⟨`,`|1⟩|⟨` `|1⟩|⟨`W`|1⟩|⟨`r`|1⟩|⟨`d`|1⟩|⟨`!`|1⟩⟩