Vyxapedia

Element - Π - Product of Array / Cartesian product over list

Characters: Π


Description

Product of Array / Cartesian product over a list of lists


Overloads

  • num - binary representation of a (shortcut for bṅ)
  • lst[num] - reduce list by multiplication
  • lst[str|lst] - reduce list by Cartesian product

Examples

  • 3 Π = `11`
  • 30 Π = `11110`
  • ⟨3|4|5⟩ Π = 60
  • ⟨⟩ Π = 1
  • ⟨⟨1|2⟩|⟨3⟩|⟨4|5⟩⟩ Π = ⟨⟨1|3|4⟩|⟨1|3|5⟩|⟨2|3|4⟩|⟨2|3|5⟩⟩
  • ⟨⟨1|2⟩|⟨3|4⟩|⟨⟩⟩ Π = ⟨⟩
  • ⟨`ab`|`cd`⟩ Π = ⟨`ac`|`ad`|`bc`|`bd`⟩
  • ⟨`abc`|`def`|`ghi`⟩ Π = ⟨`adg`|`adh`|`adi`|`aeg`|`aeh`|`aei`|`afg`|`afh`|`afi`|`bdg`|`bdh`|`bdi`|`beg`|`beh`|`bei`|`bfg`|`bfh`|`bfi`|`cdg`|`cdh`|`cdi`|`ceg`|`ceh`|`cei`|`cfg`|`cfh`|`cfi`⟩