Sha256: a63bc50aa45dc81f86c748f2ce848cf2e296324eb73e2f2a457287281a2dc467

Contents?: true

Size: 404 Bytes

Versions: 2

Compression:

Stored size: 404 Bytes

Contents

# encoding: utf-8
# frozen_string_literal: true

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

2 entries across 2 versions & 1 rubygems

Version Path
mixture-0.7.1 lib/mixture/types/set.rb
mixture-0.7.0 lib/mixture/types/set.rb