Sha256: 9eb8adf24cd01ae77f94b54c841e06ab1e4008e131fb64e339ccdc33261f5c1d

Contents?: true

Size: 383 Bytes

Versions: 1

Compression:

Stored size: 383 Bytes

Contents

module Qlang
  module Api
    module IntegralApi
      def execute(func, delta, range)
        a, b = range.split('..')
        case $meta_info.lang
        when :ruby
          "S(#{func}, #{delta})[#{a}, #{b}]"
        else
          fail "Integral is not implemented for #{LANGS_HASH[$meta_info.lang.to_s]}"
        end

      end
      module_function :execute
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
qlang-0.0.27182000 lib/qlang/api/integral_api.rb