Ecosyste.ms: Packages

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

Top 8.2% on proxy.golang.org

proxy.golang.org : github.com/lelysses/lesser

lesser defines a type-parameterized interface called "Interface" with one method, Less, which returns a boolean for whether the caller, of type T, is less than some other instance of T. This is blatantly stolen from Robert Griesemer's talk at Gophercon about the type parameters proposal in 2020. The library then defines a type-parameterized wrapper called "Basic" over all Ordered built-in types, allowing these types to implement Interface so that Interface can function as a uniform constraint for all orderable types, permitting them to all be stored in equivalent ordered collections. See the README for rationale.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/lelysses/lesser
Keywords: comparable, constraints, generics, go, golang, lesser, ordered
License: MIT
Latest release: over 2 years ago
First release: over 2 years ago
Namespace: github.com/lelysses
Stars: 4 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 28 days ago

    Loading...
    Readme
    Loading...