Sha256: b4e00f4076855092f6a2472d3762846d92a2ffe5f9e53000a382e7bf0dfd5d4e

Contents?: true

Size: 269 Bytes

Versions: 12

Compression:

Stored size: 269 Bytes

Contents

module Qlang
  module Api
    module VectorApi
      def execute(nums)
        case $type
        when :R
          "c(#{nums.join(', ')})"
        when :Ruby
          "Vector[#{nums.join(', ')}]"
        end
      end
      module_function :execute
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
qlang-0.0.27180000 lib/qlang/api/vector_api.rb
qlang-0.0.27100000 lib/qlang/api/vector_api.rb
qlang-0.0.27000000 lib/qlang/api/vector_api.rb
qlang-0.0.27 lib/qlang/api/vector_api.rb
qlang-0.0.14142135 lib/qlang/api/vector_api.rb
qlang-0.0.1414213 lib/qlang/api/vector_api.rb
qlang-0.0.141421 lib/qlang/api/vector_api.rb
qlang-0.0.14142 lib/qlang/api/vector_api.rb
qlang-0.0.1414 lib/qlang/api/vector_api.rb
qlang-0.0.141 lib/qlang/api/vector_api.rb
qlang-0.0.14 lib/qlang/api/vector_api.rb
qlang-0.0.1 lib/qlang/api/vector_api.rb