Ruby-Pair/main.rb
#appendHelper method, used to recursively append other to a list
appendHelper method, used to recursively append other to a list
appendHelper method used to recursively append other to a list
def appendHelper(temp, appended)
    if temp.cdr.is_a? Pair
      appendHelper(temp.cdr, appended)
    elsif temp.cdr.nil?
      temp.setcdr(appended)
    else
      temp.setcdr(cons(temp.cdr, appended))
    end
	end
def appendHelper ( temp , appended ) if temp . cdr . is_a? Pair appendHelper ( temp . cdr , appended ) elsif temp . cdr . nil? temp . setcdr ( appended ) else temp . setcdr ( cons ( temp . cdr , appended ) ) end end
appendHelper method, used to recursively append other to a list
appendHelper method used to recursively append other to a list
temp
<not_specific>
appended
<not_specific>