itertools-ts icon indicating copy to clipboard operation
itertools-ts copied to clipboard

Implement set.difference()

Open Smoren opened this issue 1 year ago • 0 comments

Compares first iterable against one or more other iterables and iterates the values in array that are not present in any of the other arrays.

function *difference<T>(
    ...iterables: Array<Iterable<T> | Iterator<T>>
): Iterable<T>

Needs to be implemented:

  • summary.difference()
  • summary.differenceAsync()
  • Stream.difference()
  • AsyncStream.difference()

Smoren avatar Feb 09 '25 12:02 Smoren