MCPcopy
hub / github.com/ddworken/hishtory / concatIterators

Function concatIterators

client/lib/lib.go:397–403  ·  view source on GitHub ↗

Concatenate two iterators. TODO: Equivalent of the future Go stdlib function iter.Concat2.

(iters ...iter.Seq2[string, error])

Source from the content-addressed store, hash-verified

395// Concatenate two iterators.
396// TODO: Equivalent of the future Go stdlib function iter.Concat2.
397func concatIterators(iters ...iter.Seq2[string, error]) iter.Seq2[string, error] {
398 return func(yield func(string, error) bool) {
399 for _, seq := range iters {
400 seq(yield)
401 }
402 }
403}
404
405// Convert a slice into an iterator.
406// TODO: Equivalent of the future Go stdlib function iter.Values

Callers 1

ImportHistoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected