Vyxapedia

Element - ¨□ - Parse direction arrow to integer

Characters: ¨,


Description

Map characters in `>^


Overloads

  • str - map on a, replacing `>^<v` with integers, and others with -1 ([`>^<v`.find(a[0]), `>^<v`.find(a[1]), ...])

Examples

  • `v` ¨□ = 3
  • `^<><>` ¨□ = ⟨1|2|0|2|0⟩
  • ⟨`^`⟩ ¨□ = ⟨1⟩
  • `1V_☭` ¨□ = ⟨-1|-1|-1|-1⟩