Sha256: 7ff1f9aab5fe5e1c6bc1732de1de7bc92b1aca590e9d16c225b54b2e81a00582

Contents?: true

Size: 368 Bytes

Versions: 7

Compression:

Stored size: 368 Bytes

Contents

module Qlang
  module Api
    module ListApi
      def execute(arys)
        case $type
        when :R
          combineds_by_equal = arys.map { |ary| "#{ary[0]}=#{ary[1]}" }.join(', ')
          "list(#{combineds_by_equal})"
        when :Ruby
          fail 'List is not implemented for Ruby'
        end

      end
      module_function :execute
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
qlang-0.0.27180000 lib/qlang/api/list_api.rb
qlang-0.0.27100000 lib/qlang/api/list_api.rb
qlang-0.0.27000000 lib/qlang/api/list_api.rb
qlang-0.0.27 lib/qlang/api/list_api.rb
qlang-0.0.14142135 lib/qlang/api/list_api.rb
qlang-0.0.1414213 lib/qlang/api/list_api.rb
qlang-0.0.141421 lib/qlang/api/list_api.rb