Vyxapedia

Element - - Cartesian Product / Fixpoint

Characters:


Description

Take the Cartesian Product of two values, or apply a function until there is no change. If arguments are numbers, turns them into ranges.


Overloads

  • any-any - cartesian-product(a,b)
  • fun-any - apply a on b until b does not change

Examples

  • `ab` `cd` Ẋ = ⟨`ac`|`ad`|`bc`|`bd`⟩
  • `ab` ⟨`c`|`d`⟩ Ẋ = ⟨⟨`a`|`c`⟩|⟨`a`|`d`⟩|⟨`b`|`c`⟩|⟨`b`|`d`⟩⟩
  • ⟨1|2⟩ ⟨3|4⟩ Ẋ = ⟨⟨1|3⟩|⟨1|4⟩|⟨2|3⟩|⟨2|4⟩⟩
  • 2 3 Ẋ = ⟨⟨1|1⟩|⟨1|2⟩|⟨2|1⟩|⟨1|3⟩|⟨2|2⟩|⟨2|3⟩⟩