MCPcopy Create free account
hub / github.com/denoland/std / gen

Function gen

data_structures/unstable_multimap_test.ts:586–590  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

584
585Deno.test("MultiMap.groupBy() accepts an arbitrary iterable", () => {
586 function* gen() {
587 yield 1;
588 yield 2;
589 yield 3;
590 }
591
592 const grouped = MultiMap.groupBy(gen(), (n) => n % 2 === 0 ? "even" : "odd");
593

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected