Share a single empty container across instances

Persistent data structures can share a single instance of the empty
container because nobody will ever modify it.  Implement this for List
and Map.  This simplifies the code since we can avoid checking for nil
pointers.  It should also reduce memory consumption somewhat.
3 files changed
tree: 9a200c62a0f04ab8a6da0b99cc687413cec22acc
  1. list.go
  2. list_test.go
  3. map.go
  4. map_test.go