Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 7.4% on proxy.golang.org
Top 4.2% dependent packages on proxy.golang.org
Top 4.7% dependent repos on proxy.golang.org

proxy.golang.org : mtoohey.com/iter

Package iter provides generic, lazy iterators, functions for producing them from primitive types, as well as functions and methods for transforming and consuming them. When reading the documentation of the functions contained in this package, you should assume that any function which accepts an iterator, but does not return one, consumes it unless otherwise stated, meaning that the values contained within cannot be used again. Methods with names suffixed by Endo indicate that the method transforms iterators of generic type T to some type in terms of T, such as T or Iter[T]. Transformation between types is possible, but only through the corresponding function whose name is identical to the method, without the Endo prefix. Functions are required for these operations because Go does not support the definition of type parameters on methods. The nomenclature comes from the term endomorphism, though it is a bit of a misuse of the term in that some *Endo methods take extra parameters or return types derived from T other than Iter[T].

Registry - Source - Documentation - JSON
purl: pkg:golang/mtoohey.com/iter
Keywords: generic, generics, go, golang, iterator, lazy
License: BSD-3-Clause
Latest release: about 2 years ago
First release: over 2 years ago
Namespace: mtoohey.com
Dependent packages: 2
Dependent repositories: 1
Stars: 27 on GitHub
Forks: 1 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 6 days ago

    Loading...
    Readme
    Loading...