Sha256: 332eb4d40961d91c2506e841c1a9cc829af2dd8561d14d5bad80970cfebf43f9

Contents?: true

Size: 374 Bytes

Versions: 5

Compression:

Stored size: 374 Bytes

Contents

# encoding: utf-8

module Mixture
  module Types
    # A set.  This is similar to array, but with brilliant iteration
    # and indexing(?) times.
    #
    # @see Array
    # @see http://ruby-doc.org/stdlib/libdoc/set/rdoc/Set.html
    class Set < Collection
      register
      options[:primitive] = ::Set
      options[:method] = :to_set
      as :set
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mixture-0.6.2 lib/mixture/types/set.rb
mixture-0.6.1 lib/mixture/types/set.rb
mixture-0.6.0 lib/mixture/types/set.rb
mixture-0.5.1 lib/mixture/types/set.rb
mixture-0.5.0 lib/mixture/types/set.rb