operator / method

Varset operator /(
  1. Varset other
)

The nest operator.

Nesting groups all tuples by the right varset. Grouping is used for faceting, collision modifiers, or seperating lines or areas. The nesting variables should be discrete.

Implementation

Varset operator /(Varset other) {
  // It creates a factor:
  //
  // - [form], uses the left.
  // - [nested], uses the left.
  // - [nesters], appends all right ones to the left ones, and deduplicates.

  final formRst = form;
  final nestedRst = form;
  final nestersRst = ([...nesters, other.form, ...other.nesters]);
  return Varset._create(
    formRst,
    nestedRst,
    nestersRst,
  );
}