3 ms·
I wrote this to scratch an itch of mine: There is nothing about go which prevents the use of generics. I wrote the following library to scratch an itch of mine:
by mediocregopher 13y ago
I wrote this to scratch an itch of mine:
There is nothing about go which prevents the use of generics. I wrote the following library to scratch an itch of mine:
https://github.com/mediocregopher/seq https://github.com/mediocregopher/seq
It provides clojure-like data-structures and functions for interacting with them (like map and filter). It's completely immutable and generic, and supports lazy operations.
- steveklabnik 13y agoYes, if you totally throw away the type information, then Go will let you write some generic code. Your library uses a _ton_ of `interface{}`, because it has to.