Vyxapedia

Element - T - Truthy Indices / Triple / Triadify

Characters: T


Description

Get indices of truthy elements, triple, or make the arity of a function 3


Overloads

  • num - a * 3
  • any - truthy_indices(a)
  • fun - set the arity of function a to 3

Examples

  • 1 T = 3
  • -4 T = -12
  • ⟨0|1|0|2⟩ T = ⟨1|3⟩
  • ⟨1|2|3|4⟩ T = ⟨0|1|2|3⟩
  • ⟨0|0|0|0⟩ T = ⟨⟩