Sha256: 03eec127216ba03b458d7394b05234d30e95279cc1afb25ba096c627e657b673

Contents?: true

Size: 335 Bytes

Versions: 3

Compression:

Stored size: 335 Bytes

Contents

require "iolite/adaptor/all"
require "iolite/adaptored/iolite_lazy_with_hash"

class Hash
	include Iolite::Adaptor::ToProc
	include Iolite::Adaptor::Bind
	include Iolite::Adaptor::Apply
	include Iolite::Adaptor::Callable
	def call *args
		Hash[ self.map { |key, value|
			Iolite::Functinal.invoke_a([key, value], *args)
		} ]
	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
iolite-0.0.3 lib/iolite/adaptored/hash.rb
iolite-0.0.2 lib/iolite/adaptored/hash.rb
iolite-0.0.1 lib/iolite/adaptored/hash.rb