   set
 
 setToArray = (set) ->
-  set.values
+  key for key of set.values
 
 cloneSet = (set) ->
   clone = newSet()

isSetEmpty = (set) ->
  set.size is 0

# end of Set

# mycroft = (context, node, environment) ->
#   if node.label is 'numerical'

    scope[id] = true
  scope

# Set/Map implementation

newSet =
newMap = ->
  size: 0
  values: {}

addToSet = (set, key) ->
  addToMap set, key, true

addToMap = (set, key, value) ->
  return if set.values[key]
  set.size += 1
  set.values[key] = value

removeFromSet =
removeFromMap = (set, key) ->
  return if !set.values[key]?
  set.size -= 1
  delete set.values[key]

setInMap = (set, key, value) ->
  return unless set.values[key]
  set.values[key] = value

addAllToSet = (set, array) ->
  for v in array
