MCPcopy Create free account
hub / github.com/sourcegraph/conc / Mapper

TypeAlias Mapper

iter/map.go:14–14  ·  view source on GitHub ↗

Mapper is an Iterator with a result type R. It can be used to configure the behaviour of Map and MapErr. The zero value is safe to use with reasonable defaults. Mapper is also safe for reuse and concurrent use.

Source from the content-addressed store, hash-verified

12//
13// Mapper is also safe for reuse and concurrent use.
14type Mapper[T, R any] Iterator[T]
15
16// Map applies f to each element of input, returning the mapped result.
17//

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected