Sha256: fead0235eb1b810cab7bb07c5e43a89195ad9bb2c571b471082ed0fe22b8fccf

Contents?: true

Size: 391 Bytes

Versions: 9

Compression:

Stored size: 391 Bytes

Contents

module Hilbert
  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

9 entries across 9 versions & 1 rubygems

Version Path
hilbert-0.0.2700420 lib/hilbert/api/list_api.rb
hilbert-0.0.2700410 lib/hilbert/api/list_api.rb
hilbert-0.0.2700400 lib/hilbert/api/list_api.rb
hilbert-0.0.2700320 lib/hilbert/api/list_api.rb
hilbert-0.0.2700300 lib/hilbert/api/list_api.rb
hilbert-0.0.2700210 lib/hilbert/api/list_api.rb
hilbert-0.0.2700110 lib/hilbert/api/list_api.rb
hilbert-0.0.2700100 lib/hilbert/api/list_api.rb
hilbert-0.0.2700001 lib/hilbert/api/list_api.rb