Vyxapedia

Element - - Permutations

Characters:


Description

Get all permutations of a value


Overloads

  • any - permutations(a) (get all permutations)

Examples

  • `abc` Ṗ = ⟨`abc`|`acb`|`bac`|`bca`|`cab`|`cba`⟩
  • ⟨1|2⟩ Ṗ = ⟨⟨1|2⟩|⟨2|1⟩⟩
  • 12 Ṗ = ⟨⟨1|2⟩|⟨2|1⟩⟩
  • ⟨`abc`|`def`|`ghi`⟩ Ṗ = ⟨⟨`abc`|`def`|`ghi`⟩|⟨`abc`|`ghi`|`def`⟩|⟨`def`|`abc`|`ghi`⟩|⟨`def`|`ghi`|`abc`⟩|⟨`ghi`|`abc`|`def`⟩|⟨`ghi`|`def`|`abc`⟩⟩