benbjohnson / immutable

Immutable collections for Go
MIT License
713 stars 32 forks source link

Refactor builders #16

Closed benbjohnson closed 3 years ago

benbjohnson commented 3 years ago

This commit fixes a bug in builders that caused changes to leak when building on existing collections. The builders now only work on empty list & map types and are marked as invalid after the underlying collection has been retrieved from them.