Sha256: d754732aca7b2970c8fc34dc9323bfbc0d65506c119dd23e8979a2d3b99839f2

Contents?: true

Size: 389 Bytes

Versions: 2

Compression:

Stored size: 389 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

2 entries across 2 versions & 2 rubygems

Version Path
hilbert-0.0.2700000 lib/qlang/api/list_api.rb
qlang-0.0.27182124 lib/qlang/api/list_api.rb