Sha256: 59a6661ec49932010125f22b9e88c096d610fcc672853cc42bb9c52932fa3541

Contents?: true

Size: 370 Bytes

Versions: 6

Compression:

Stored size: 370 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 #{$meta_info.lang_str}"
        end

      end
      module_function :execute
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
qlang-0.0.27182123 lib/qlang/api/integral_api.rb
qlang-0.0.27182122 lib/qlang/api/integral_api.rb
qlang-0.0.27182121 lib/qlang/api/integral_api.rb
qlang-0.0.27182120 lib/qlang/api/integral_api.rb
qlang-0.0.27182110 lib/qlang/api/integral_api.rb
qlang-0.0.27182100 lib/qlang/api/integral_api.rb