Sha256: 17e6d48cf9ad096928e3de76c57c91e4b28fc83256ad21bda49159442d75d176
Contents?: true
Size: 436 Bytes
Versions: 1
Compression:
Stored size: 436 Bytes
Contents
module Qlang 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 #{LANGS_HASH[$meta_info.lang.to_s]}" end end module_function :execute end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
qlang-0.0.27182000 | lib/qlang/api/vector_api.rb |