ion parser:list(a, d)
  if oo.classof(a) == List then
    a[#a+1] = d
    return a
  else
    return List{ a, d }
  end
end

compare("results.lua", {
  "'fat=\x.if(eq(x,0),1,mul(x,fat(sub(x,-1))))",
  "'addto=\(x,y).cons(sum(car x,y),addto(cdr x,y))",
  -- TODO: add more testcases here
})
</pre>

</div>

<div class="content">
<p><small><strong>Copyright (C) 2004-2008 Tecgraf, PUC-Rio</strong></small></p>
<small>This project is currently being maintained by <a href="http://www.tecgraf.puc-rio.br">Tecgraf</a>