In the (nice) immutable map example on that page, a reference cell is used &amp; updated each time something is added to the map. How would the JS output differ if you built the map using a fold or similar, without any refs?