Type Alias TreeSetElementCallback<K, R, SELF>

TreeSetElementCallback<K, R, SELF>: ((value: K, index: number, set: SELF) => R)

Callback used by TreeSet element-wise utilities.

SELF is intentionally generic to avoid type-layer circular imports. Implementations (e.g. TreeSet<K>) should bind SELF at use sites.

Type Parameters

  • K
  • R
  • SELF