Vyxapedia

Element - Þf - Flatten By depth

Characters: Þ, f


Description

Flatten a list by a certain depth (default 1)


Overloads

  • lst-num - flatten a by depth b
  • any-lst - a, flatten b by depth 1

Examples

  • ⟨⟨⟨⟨⟨1⟩⟩⟩⟩⟩ 3 Þf = ⟨⟨1⟩⟩
  • `xyz` ⟨1|2|⟨3|4|⟨5|6⟩⟩⟩ Þf = ⟨1|2|3|4|⟨5|6⟩⟩
  • 1 3 Þf = 1
  • ⟨⟨⟩⟩ 0 Þf = ⟨⟨⟩⟩