Cayley table generator.
Generate all types of combinations between arbitrary values, using a single array.

Try it out:

Enter values separated by a comma


Usage

$('#table').jq_cayley({ values: [1, 2, 3, 4] });

Usage options

{
  • required values [array]: the items to combine.
  • optional operation [function]: a function that takes two elements (row and column) and combines them in some way.
}

More examples

Punnett square (genomics)
Multiplication table (math)
Composition (category theory)
Truth table (programming/logic)