Cat.html 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <html lang="en">
  2. <head>
  3. <title>Cat - avram - a virtual machine code interpreter</title>
  4. <meta http-equiv="Content-Type" content="text/html">
  5. <meta name="description" content="avram - a virtual machine code interpreter">
  6. <meta name="generator" content="makeinfo 4.13">
  7. <link title="Top" rel="start" href="index.html#Top">
  8. <link rel="up" href="List-Functions.html#List-Functions" title="List Functions">
  9. <link rel="prev" href="List-Functions.html#List-Functions" title="List Functions">
  10. <link rel="next" href="Reverse.html#Reverse" title="Reverse">
  11. <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
  12. <meta http-equiv="Content-Style-Type" content="text/css">
  13. <style type="text/css"><!--
  14. pre.display { font-family:inherit }
  15. pre.format { font-family:inherit }
  16. pre.smalldisplay { font-family:inherit; font-size:smaller }
  17. pre.smallformat { font-family:inherit; font-size:smaller }
  18. pre.smallexample { font-size:smaller }
  19. pre.smalllisp { font-size:smaller }
  20. span.sc { font-variant:small-caps }
  21. span.roman { font-family:serif; font-weight:normal; }
  22. span.sansserif { font-family:sans-serif; font-weight:normal; }
  23. --></style>
  24. </head>
  25. <body>
  26. <div class="node">
  27. <a name="Cat"></a>
  28. <p>
  29. Next:&nbsp;<a rel="next" accesskey="n" href="Reverse.html#Reverse">Reverse</a>,
  30. Previous:&nbsp;<a rel="previous" accesskey="p" href="List-Functions.html#List-Functions">List Functions</a>,
  31. Up:&nbsp;<a rel="up" accesskey="u" href="List-Functions.html#List-Functions">List Functions</a>
  32. <hr>
  33. </div>
  34. <h5 class="subsubsection">2.7.14.1 Cat</h5>
  35. <p>The list concatenation operation has this representation in virtual code.
  36. <a name="index-g_t_0040code_007bcat_007d-342"></a><a name="index-concatenation-343"></a>
  37. <dl>
  38. <dt><em>T28</em><dd>[[<code>cat</code>]] = <code>((nil,nil),(nil,nil))</code>
  39. </dl>
  40. <p class="noindent">This function takes a pair of lists as an argument, an returns the list
  41. obtained by appending the right one to the left. The semantics of
  42. concatenation is what one would expect.
  43. <dl>
  44. <dt><em>P35</em><dd>[[<code>cat</code>]] <code>(nil,</code><var>z</var><code>)</code> = <var>z</var>
  45. <br><dt><em>P36</em><dd>[[<code>cat</code>]] <code>((</code><var>x</var><code>,</code><var>y</var><code>),</code><var>z</var><code>)</code> = <code>(</code><var>x</var><code>,</code>[[<code>cat</code>]] <code>(</code><var>y</var><code>,z))</code>
  46. </dl>
  47. </body></html>