   toArray: -> @entries?.toArray() or []
 
   # Returns a string representation of this collection.
-  toString: -> "#{@className}(#{@root})"
+  toString: -> "#{@class.name}(#{@root})"
 
 
 # --------------------------------------------------------------------

# The IntSet class.
class IntSet extends Collection
  this::class = this
  className: "IntSet"

  # Returns the elements as a stream
  elements: -> @entries

# for the various node classes that hold the actual information.
class HashSet extends Collection
  this::class = this
  @name = "HashSet"

  # Returns the elements as a stream
  elements: -> @entries
