create<E, I extends Iterable<E>> static method

Collective<E> create<E, I extends Iterable<E>>({
  1. Iterable<E>? elements,
  2. Cell? bind,
  3. ContainerType? container,
  4. CollectiveReceptor<dynamic, Signal, Signal> receptor = CollectiveReceptor.unchanged,
  5. TestCollective<dynamic, Collective> test = TestCollective.passed,
  6. MapObject? mapObject,
  7. Synapses<Signal, Cell> synapses = Synapses.enabled,
})

Creates a collective with properties

Implementation

static Collective<E> create<E, I extends Iterable<E>>({
  Iterable<E>? elements,
  Cell? bind,
  ContainerType? container,
  CollectiveReceptor receptor = CollectiveReceptor.unchanged,
  TestCollective test = TestCollective.passed,
  MapObject? mapObject,
  Synapses synapses = Synapses.enabled
}) {
  return _Collective<E>(CollectiveCellProperties<E,I>(
    bind: bind,
    container: container,
    receptor: receptor,
    test: test,
    mapObject: mapObject,
    synapses: synapses
  ), elements: elements);
}