code: func (s *Set) ToArray() []interface{} {
  	s.lock.RLock()
  	defer s.lock.RUnlock()
  	a := make([]interface{}, len(s.items))
  	i := 0
  	for item := range s.items {
  		a[i] = item
  		i++
  	}
  	return a
  }
docs: // ToArray returns a slice with items
  // at the point in time the method was invoked