Sha256: 3fb01229870e83b30b8a84f64dd0b5f0b7b484817cc77940a1589aa1195db3ff
Contents?: true
Size: 427 Bytes
Versions: 7
Compression:
Stored size: 427 Bytes
Contents
module Dry module Data class Type class Array < Type def self.constructor(array_constructor, value_constructor, input) array_constructor[input].map(&value_constructor) end def member(type) self.class.new( self.class.method(:constructor).to_proc.curry.(constructor, type.constructor), primitive ) end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems