import { Comp } from "https://deno.land/x/rimbu@1.2.0/common/index.ts";
const { iterableComp } = Comp;
Returns a Comp instance for Iterable objects that orders the Iterables by comparing the elements with the given itemComp
Comp instance.
Examples
Example 1
Example 1
const c = Comp.iterableComp();
console.log(c.compare([1, 3, 2], [1, 3, 2]))
// => 0
console.log(c.compare([1, 2, 3, 4], [1, 3, 2]) < 0)
// => true