Vyxapedia

Element - f - Flatten

Characters: f


Description

Turn a number into a list of digits, split a string into a list of characters, or flatten a list.


Overloads

  • num - digits of a
  • str - list of characters of a
  • lst - flatten(a) (deep flatten)

Examples

  • 135 f = ⟨1|3|5⟩
  • `hi` f = ⟨`h`|`i`⟩
  • ⟨⟨⟨1|2⟩|3|⟨⟨4|⟨5⟩⟩|6⟩|7⟩|⟨8|⟨9⟩⟩⟩ f = ⟨1|2|3|4|5|6|7|8|9⟩
  • ⟨⟨⟨⟩|⟨⟩⟩|⟨⟨⟨⟨⟩⟩⟩⟩⟩ f = ⟨⟩
  • -1 f = ⟨`-`|1⟩