Sha256: 8fa01b2eb38b29c996b93fca001a45445b15a55f939bc7839f65432f25b46e04

Contents?: true

Size: 385 Bytes

Versions: 7

Compression:

Stored size: 385 Bytes

Contents

# -*- coding: utf-8 -*-
module Funkr
  module Categories
    
    # A functor is a container that can be mapped over
    module Functor

      # Map over the constructor. The type must be as follow :
      #   Functor(A).map{|A| λ(A) : B} : Functor(B)
      def map
        raise "Functor#map not implemented"
      end


      module ClassMethods

      end
    


    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
funkr-0.0.40 lib/funkr/categories/functor.rb
funkr-0.0.30 lib/funkr/categories/functor.rb
funkr-0.0.28 lib/funkr/categories/functor.rb
funkr-0.0.27 lib/funkr/categories/functor.rb
funkr-0.0.26 lib/funkr/categories/functor.rb
funkr-0.0.25 lib/funkr/categories/functor.rb
funkr-0.0.24 lib/funkr/categories/functor.rb