class Array

Array

Public Instance Methods

car() click to toggle source
# File core/miku/array.rb, line 6
def car
  self.first
end
cdr() click to toggle source
# File core/miku/array.rb, line 10
def cdr
  result = self[1..self.size]
  if is_a?(MIKU::StaticCode)
    result.extend(MIKU::StaticCode).staticcode_copy_info(staticcode_dump) end
  result unless result.empty? end
setcar(val) click to toggle source
# File core/miku/array.rb, line 19
def setcar(val)
  result = val.clone
  result[0] = val
  result.freeze
end
setcdr(val) click to toggle source
# File core/miku/array.rb, line 25
def setcdr(val)
  MIKU::Cons.new(self.car, val)
end
symbolize() click to toggle source
# File core/utils.rb, line 337
def symbolize
  result = []
  each { |val|
    result << if val.respond_to?(:symbolize) then val.symbolize else val end }
  result
end
terminator() click to toggle source
# File core/miku/array.rb, line 16
def terminator
  nil end
unparse(start=true) click to toggle source
# File core/miku/array.rb, line 29
def unparse(start=true)
  result = ''
  result = '(' if start
  result + self.map{ |n| MIKU.unparse(n) }.join(' ') + ')'
end