Sha256: 6ed3c8f57be7583d831d81bd578280e152eee9b531c1d253332f8880c6d02076

Contents?: true

Size: 382 Bytes

Versions: 1

Compression:

Stored size: 382 Bytes

Contents

# frozen_string_literal: true

require_relative "../../fun_ruby"
require_relative "../function"

module FunRuby
  module Common
    # Helpers for shorting internal implementations
    module Helpers
      private

      def curry_implementation(method_name, *args)
        F::Function.curry(method("_#{method_name}")).(*args)
      end
    end
  end

  private_constant :Common
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fun-ruby-0.0.1 lib/fun_ruby/common/helpers.rb