ExpandPosition typedef

ExpandPosition = Iterable<T> Function<T extends Position>(Position source, {required CreatePosition<T> to})

A function to expand the source position to an iterable of zero or more positions of T using to as a factory.

When zero or one position is returned the function implements a filter.

Implementation

typedef ExpandPosition = Iterable<T> Function<T extends Position>(
  Position source, {
  required CreatePosition<T> to,
});