Sha256: 80ce037939aaa10b757e7bed339337470807cc6f0b4e89e1457982fa82cda125
Contents?: true
Size: 425 Bytes
Versions: 9
Compression:
Stored size: 425 Bytes
Contents
module Hilbert module Api module VectorApi def execute(nums) case $meta_info.lang when :r "c(#{nums.join(', ')})" when :ruby "Vector[#{nums.join(', ')}]" when :python "array([#{nums.join(', ')}])" else fail "Vector 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