Sha256: 041acaafbeb43080db371cbf52466baa99f7a73e5d3ad6a559f21dd7693632ce

Contents?: true

Size: 390 Bytes

Versions: 6

Compression:

Stored size: 390 Bytes

Contents

module Qlang
  module Api
    module ListApi
      def execute(arys)
        case $meta_info.lang
        when :r
          combineds_by_equal = arys.map { |ary| "#{ary[0]}=#{ary[1]}" }.join(', ')
          "list(#{combineds_by_equal})"
        else
          fail "List 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/list_api.rb
qlang-0.0.27182122 lib/qlang/api/list_api.rb
qlang-0.0.27182121 lib/qlang/api/list_api.rb
qlang-0.0.27182120 lib/qlang/api/list_api.rb
qlang-0.0.27182110 lib/qlang/api/list_api.rb
qlang-0.0.27182100 lib/qlang/api/list_api.rb