您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

2723 行
73 KiB

  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <title>The Slime 1.0 Manual</title>
  5. <!-- 2019-06-11 Di 02:01 -->
  6. <meta charset="utf-8">
  7. <meta name="viewport" content="width=device-width, initial-scale=1">
  8. <meta name="generator" content="Org-mode">
  9. <meta name="author" content="Felix Brendel">
  10. <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
  11. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
  12. <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/js/bootstrap.min.js"></script>
  13. <style type="text/css">
  14. /* org mode styles on top of twbs */
  15. html {
  16. position: relative;
  17. min-height: 100%;
  18. }
  19. body {
  20. font-size: 18px;
  21. margin-bottom: 105px;
  22. }
  23. footer {
  24. position: absolute;
  25. bottom: 0;
  26. width: 100%;
  27. height: 101px;
  28. background-color: #f5f5f5;
  29. }
  30. footer > div {
  31. padding: 10px;
  32. }
  33. footer p {
  34. margin: 0 0 5px;
  35. text-align: center;
  36. font-size: 16px;
  37. }
  38. #table-of-contents {
  39. margin-top: 20px;
  40. margin-bottom: 20px;
  41. }
  42. blockquote p {
  43. font-size: 18px;
  44. }
  45. pre {
  46. font-size: 16px;
  47. }
  48. .footpara {
  49. display: inline-block;
  50. }
  51. figcaption {
  52. font-size: 16px;
  53. color: #666;
  54. font-style: italic;
  55. padding-bottom: 15px;
  56. }
  57. /* from twbs docs */
  58. .bs-docs-sidebar.affix {
  59. position: static;
  60. }
  61. @media (min-width: 768px) {
  62. .bs-docs-sidebar {
  63. padding-left: 20px;
  64. }
  65. }
  66. /* All levels of nav */
  67. .bs-docs-sidebar .nav > li > a {
  68. display: block;
  69. padding: 4px 20px;
  70. font-size: 14px;
  71. font-weight: 500;
  72. color: #999;
  73. }
  74. .bs-docs-sidebar .nav > li > a:hover,
  75. .bs-docs-sidebar .nav > li > a:focus {
  76. padding-left: 19px;
  77. color: #A1283B;
  78. text-decoration: none;
  79. background-color: transparent;
  80. border-left: 1px solid #A1283B;
  81. }
  82. .bs-docs-sidebar .nav > .active > a,
  83. .bs-docs-sidebar .nav > .active:hover > a,
  84. .bs-docs-sidebar .nav > .active:focus > a {
  85. padding-left: 18px;
  86. font-weight: bold;
  87. color: #A1283B;
  88. background-color: transparent;
  89. border-left: 2px solid #A1283B;
  90. }
  91. /* Nav: second level (shown on .active) */
  92. .bs-docs-sidebar .nav .nav {
  93. display: none; /* Hide by default, but at >768px, show it */
  94. padding-bottom: 10px;
  95. }
  96. .bs-docs-sidebar .nav .nav > li > a {
  97. padding-top: 1px;
  98. padding-bottom: 1px;
  99. padding-left: 30px;
  100. font-size: 12px;
  101. font-weight: normal;
  102. }
  103. .bs-docs-sidebar .nav .nav > li > a:hover,
  104. .bs-docs-sidebar .nav .nav > li > a:focus {
  105. padding-left: 29px;
  106. }
  107. .bs-docs-sidebar .nav .nav > .active > a,
  108. .bs-docs-sidebar .nav .nav > .active:hover > a,
  109. .bs-docs-sidebar .nav .nav > .active:focus > a {
  110. padding-left: 28px;
  111. font-weight: 500;
  112. }
  113. /* Nav: third level (shown on .active) */
  114. .bs-docs-sidebar .nav .nav .nav {
  115. padding-bottom: 10px;
  116. }
  117. .bs-docs-sidebar .nav .nav .nav > li > a {
  118. padding-top: 1px;
  119. padding-bottom: 1px;
  120. padding-left: 40px;
  121. font-size: 12px;
  122. font-weight: normal;
  123. }
  124. .bs-docs-sidebar .nav .nav .nav > li > a:hover,
  125. .bs-docs-sidebar .nav .nav .nav > li > a:focus {
  126. padding-left: 39px;
  127. }
  128. .bs-docs-sidebar .nav .nav .nav > .active > a,
  129. .bs-docs-sidebar .nav .nav .nav > .active:hover > a,
  130. .bs-docs-sidebar .nav .nav .nav > .active:focus > a {
  131. padding-left: 38px;
  132. font-weight: 500;
  133. }
  134. /* Show and affix the side nav when space allows it */
  135. @media (min-width: 992px) {
  136. .bs-docs-sidebar .nav > .active > ul {
  137. display: block;
  138. }
  139. /* Widen the fixed sidebar */
  140. .bs-docs-sidebar.affix,
  141. .bs-docs-sidebar.affix-bottom {
  142. width: 213px;
  143. }
  144. .bs-docs-sidebar.affix {
  145. position: fixed; /* Undo the static from mobile first approach */
  146. top: 20px;
  147. }
  148. .bs-docs-sidebar.affix-bottom {
  149. position: absolute; /* Undo the static from mobile first approach */
  150. }
  151. .bs-docs-sidebar.affix .bs-docs-sidenav,.bs-docs-sidebar.affix-bottom .bs-docs-sidenav {
  152. margin-top: 0;
  153. margin-bottom: 0
  154. }
  155. }
  156. @media (min-width: 1200px) {
  157. /* Widen the fixed sidebar again */
  158. .bs-docs-sidebar.affix-bottom,
  159. .bs-docs-sidebar.affix {
  160. width: 263px;
  161. }
  162. }
  163. </style>
  164. <script type="text/javascript">
  165. $(function() {
  166. 'use strict';
  167. $('.bs-docs-sidebar li').first().addClass('active');
  168. $(document.body).scrollspy({target: '.bs-docs-sidebar'});
  169. $('.bs-docs-sidebar').affix();
  170. });
  171. </script>
  172. <script type="text/x-mathjax-config">
  173. MathJax.Hub.Config({
  174. displayAlign: "center",
  175. displayIndent: "2em",
  176. messageStyle: "none",
  177. "HTML-CSS": {
  178. scale: 100,
  179. styles: {
  180. ".MathJax_Display": {
  181. "font-size": "100%"
  182. }
  183. }
  184. },
  185. "SVG": {
  186. scale: 100,
  187. styles: {
  188. ".MathJax_SVG_Display": {
  189. "font-size": "100%",
  190. "margin-left": "-2.281em"
  191. }
  192. }
  193. }
  194. });
  195. </script>
  196. <script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_SVG"></script>
  197. </head>
  198. <body>
  199. <div id="content" class="container">
  200. <div class="row"><div class="col-md-12"><h1 class="title">The Slime 1.0 Manual</h1>
  201. <div class="abstract">
  202. <p>
  203. abstract
  204. </p>
  205. </div>
  206. <p>
  207. \tableofcontents
  208. </p>
  209. <div id="outline-container-sec-1" class="outline-2">
  210. <h2 id="sec-1"><span class="section-number-2">1</span> Lisp languages</h2>
  211. <div class="outline-text-2" id="text-1">
  212. <p>
  213. Lisp is not one language but rather a family of programming languages. The family is devided by some
  214. characteristics. There are Lisp-1 and Lisp-2 dialects and there is a difference between a Lisp with
  215. lexical scoping as opposed to dynamic scoping. These differences will be explained in later
  216. sections.
  217. </p>
  218. <p>
  219. Like most Lisps, Slime is dynamically typed. That means that like in statically typed Languages
  220. Slime has different data types, but they are associated not with variables but with the Lisp objects
  221. themselves. Variables can be assigend Lisp objects of any internal type.
  222. </p>
  223. <p>
  224. The Lisp language family is known to be highly flexible and applicable in all areas by creating
  225. domain specific languages in Lisp itself through a powerful macro system. The central data structure
  226. in Lisp is the list. The reason why lisp is so powerful is because the program source code itself is
  227. represented as lists. The nested lists make up the syntax tree of the lisp program. It is therfore
  228. computationally easy to parse lisp programs as the source code itself is already structured in the
  229. form of the syntax tree; allowing for parsing in linear time.
  230. </p>
  231. <p>
  232. The macro system in Slime works by recognizing macros at parse-time and running them, and replacing
  233. the macro call in the program code with the return value of the macro and then checking if further
  234. macros have to be expanded in the replaced code. Therefore the macros can be used to pre-compute
  235. values or rewrite expressions (creating syntactic sugar) or themselves define macros.
  236. </p>
  237. </div>
  238. </div>
  239. <div id="outline-container-sec-2" class="outline-2">
  240. <h2 id="sec-2"><span class="section-number-2">2</span> Lists</h2>
  241. <div class="outline-text-2" id="text-2">
  242. <p>
  243. As mentioned in <a href="#sec-1">Lisp languages</a>, the central data structure in all Lisps is the list. Lists are
  244. implemented as singly linked lists, made up of pairs (historically called <code>cons-cells</code>), each pair
  245. has two slots, the <code>first</code> and the <code>rest</code> (historically <code>car</code> and <code>cdr</code>). A linked lsit ist then
  246. constructed by the convention that the <code>first</code> field of a pair points to the first element of the
  247. list and the <code>rest</code> field points to the rest of the list. Following this description, the list is a
  248. recursive data structure. For the end of the list a special value <code>nil</code> is used in the <code>rest</code> field.
  249. </p>
  250. <p>
  251. A helpful way to visualize lists made up of pairs is using box diagrams. A simple box diagram can be
  252. seen in <a href="#simpleBoxDiagram">1</a>. Each rectangle is divided in two. The left part represents the <code>first</code>
  253. field, the right part represents the <code>rest</code>. The arrows point to the values in these fields.
  254. </p>
  255. <p>
  256. The diagram in <a href="#simpleBoxDiagram">1</a> shows a simple list containing the values 1, 2 and 3. The first pair
  257. stores the number 1 its <code>first</code> field and the <code>rest</code> points to the rest of the list. The last pair
  258. points to the special value <code>nil</code> in its <code>rest</code> to denote the end of the list.
  259. </p>
  260. <p>
  261. <a href="diagrams/list123.eps">diagrams/list123.eps</a>
  262. </p>
  263. <p>
  264. However the <code>rest</code> of a pair needs not to be a pair or nil, it could also point to any other value.
  265. By doing this the list is no longer "well formed" but rather "ill formed". Ill formed lsits can be
  266. used as an optimization when using the list for storing data. In <a href="#illFormedList">2</a> an ill formed list
  267. can be seen, that also contains the values 1, 2 and 3 but stores them using only two pairs instead
  268. of 3.
  269. </p>
  270. <p>
  271. <a href="diagrams/list12.3.eps">diagrams/list12.3.eps</a>
  272. </p>
  273. </div>
  274. <div id="outline-container-sec-2-1" class="outline-3">
  275. <h3 id="sec-2-1"><span class="section-number-3">2.1</span> representing lists in Lisp</h3>
  276. <div class="outline-text-3" id="text-2-1">
  277. <p>
  278. In Slime and in most Lisps, lists are represented using round parenthesis where <code>(</code> denotes the
  279. start of the list and <code>)</code> denotes the end. Eeach element inside these parenthesis separated by one
  280. or more spaces will be interpreted as an element of that list. For example the list from
  281. <a href="#simpleBoxDiagram">1</a> would be represented as <code>(1 2 3)</code>. During parse time, the Lisp parser transforms
  282. the parenthesised list into the pairs that are in the end stored in memory.
  283. </p>
  284. <p>
  285. To also be able to represent ill formed lists in Lisp there is a special syntax using the <code>.</code> (dot
  286. symbol). If the parser encounters a <code>.</code> inside of a list, it will treat the next element as the
  287. <code>rest</code>. If there is no or more than one element after the <code>.</code> an parsing error will be thrown. Using
  288. this syntax we can represent the ill formed list from <a href="#illFormedList">2</a> as <code>(1 2 . 3)</code>. We can also
  289. write well formed lists using the dot notation if we point the rest to another list. So the well
  290. formed list from <a href="#simpleBoxDiagram">1</a> can also be written as \[\texttt{(1 . (2 . (3)))}\]
  291. </p>
  292. </div>
  293. </div>
  294. <div id="outline-container-sec-2-2" class="outline-3">
  295. <h3 id="sec-2-2"><span class="section-number-3">2.2</span> representing function calls in Lisp</h3>
  296. <div class="outline-text-3" id="text-2-2">
  297. <p>
  298. If we tried to enter the Lisp representation of the lists like <code>(1 2 3)</code> discussed in <a href="#sec-2-1">representing lists in Lisp</a> directly into an Lisp interpreter we would get an error. That doesn't mean that the
  299. explanation given in the section is wrong, it is in fact correct: the lisp parser will transform the
  300. lisp syntax into the pairs in memory. The reason we would get an error is, that when reading Lisp
  301. code, the Lisp interpreter first parses the code and then tries to evaluate it and return the result
  302. back to the user.
  303. </p>
  304. <p>
  305. In Lisp by default, a list corresponds to a function call. As mentioned in <a href="#sec-1">Lisp languages</a> Lisp
  306. represents lists and Lisp programms as lists. If a list is treated as a function call, the first
  307. element will be treated as the function and the rest of the elements will be the arguments to that
  308. function. If we would wnter <code>(1 2 3)</code> directly into the Lisp interpreter we would get an error
  309. saying it cannot find the function <code>1</code>.
  310. </p>
  311. <p>
  312. If we would want to compute the sum of the numbers 5 and 3 we could do this by invoking the <code>+</code>
  313. function with 5 and 3 as its arguments. <code>(+ 5 3)</code> will evaluate to 8. We can also nest functions
  314. calls and use the return values as parameters to other functions: <code>(+ (- 12 4) (/ 24 4))</code> will
  315. evaluate to 14. The box diagramm showing the internal structure of that computation can be seen in
  316. <a href="#moreComplexBoxDiagram">3</a>.
  317. </p>
  318. <p>
  319. <a href="diagrams/simpleMath.eps">diagrams/simpleMath.eps</a>
  320. </p>
  321. </div>
  322. </div>
  323. </div>
  324. <div id="outline-container-sec-3" class="outline-2">
  325. <h2 id="sec-3"><span class="section-number-2">3</span> Evaluation order</h2>
  326. <div class="outline-text-2" id="text-3">
  327. <p>
  328. As a first step of evaluation of a regular function, all its arguments are getting evaluated, and
  329. then the function is applied to the evaluated arguments. For example when evaluating the nested
  330. expression in <a href="#code:complex-math">1</a> the outermost function is the <code>+</code> function with three arguments: <code>(*
  331. 3 4)</code>, <code>(- 100 (+ 12 13 14 15))</code> and <code>2</code>. So before the outhermost <code>+</code> gets invoked, the three
  332. arguments are getting evaluated recursively.
  333. </p>
  334. <div class="org-src-container">
  335. <label class="org-src-name">A more complex nested arithmetic expression. Nested expressions can be written more readable by aligning subsequent arguments vertically underneeth each other</label>
  336. <pre class="src src-slime" id="code:complex-math"><span style="color: #ff8c00;">(</span><span style="color: #859900;">print</span> <span style="color: #ff1493;">(</span><span style="color: #859900;">+</span> <span style="color: #7fff00;">(</span><span style="color: #859900;">*</span> 3 4<span style="color: #7fff00;">)</span>
  337. <span style="color: #7fff00;">(</span><span style="color: #859900;">-</span> 100 <span style="color: #00bfff;">(</span><span style="color: #859900;">+</span> 12 13 14 15<span style="color: #00bfff;">)</span><span style="color: #7fff00;">)</span>
  338. 2<span style="color: #ff1493;">)</span><span style="color: #ff8c00;">)</span>
  339. </pre>
  340. </div>
  341. <pre class="example">
  342. evaluates to =&gt;
  343. 60
  344. </pre>
  345. </div>
  346. <div id="outline-container-sec-3-1" class="outline-3">
  347. <h3 id="sec-3-1"><span class="section-number-3">3.1</span> Special forms</h3>
  348. <div class="outline-text-3" id="text-3-1">
  349. <p>
  350. The given evaluation rule &#x2013; to evaluate all the arguments first and then allpying them to the
  351. funciton &#x2013; as described in <a href="#sec-3">Evaluation order</a> is only valid for regular functions. There is a class
  352. of functions that do not follow this evaluation rule called <b>special forms</b>. Special forms are
  353. needed when you do not wish to evaluate all arguments. For example the built-in <code>if</code> function should
  354. only evaluate the "then-expression" if the condition evaluates to a truthy value and not otherwise.
  355. Consider the example in <a href="#code:special-forms">2</a>. The if expression only evaluates the then-expression. If
  356. the <code>if</code> function would follow the evaluation order of regular functions, first all three arguments
  357. <code>(&lt; 1 2)</code>, <code>(print "I knew it!!\n")</code> but also <code>(print "Oh, it is not?!\n")</code> could get evaluated and
  358. so both messages would be printed. In the given <code>if</code> expression, the condition evaluates to a truthy
  359. value and only <code>I knew it!!</code> will be printed.
  360. </p>
  361. <div class="org-src-container">
  362. <label class="org-src-name">The <code>if</code> function is a special form because it does not evaluate all of its arguments</label>
  363. <pre class="src src-slime" id="code:special-forms"><span style="color: #ff8c00;">(</span><span style="color: #859900;">if</span> <span style="color: #ff1493;">(</span><span style="color: #859900;">&lt;</span> 1 2<span style="color: #ff1493;">)</span>
  364. <span style="color: #ff1493;">(</span><span style="color: #859900;">print</span> <span style="color: #2aa198;">"I knew it!!\n"</span><span style="color: #ff1493;">)</span>
  365. <span style="color: #ff1493;">(</span><span style="color: #859900;">print</span> <span style="color: #2aa198;">"Oh, it is not?!\n"</span><span style="color: #ff1493;">)</span><span style="color: #ff8c00;">)</span>
  366. </pre>
  367. </div>
  368. <pre class="example">
  369. evaluates to =&gt;
  370. I knew it!!
  371. </pre>
  372. <p>
  373. The programmer can also define their own special forms using <code>special-lambda</code> and macros, which will
  374. be explained in <a href="#sec-6-1">Special lambdas</a> and <a href="#sec-9">Macros</a>.
  375. </p>
  376. </div>
  377. </div>
  378. </div>
  379. <div id="outline-container-sec-4" class="outline-2">
  380. <h2 id="sec-4"><span class="section-number-2">4</span> Symbols and keywords</h2>
  381. </div>
  382. <div id="outline-container-sec-5" class="outline-2">
  383. <h2 id="sec-5"><span class="section-number-2">5</span> Truthyness</h2>
  384. </div>
  385. <div id="outline-container-sec-6" class="outline-2">
  386. <h2 id="sec-6"><span class="section-number-2">6</span> Lambdas</h2>
  387. <div class="outline-text-2" id="text-6">
  388. <p>
  389. Slime allows for creating anonymous functions called <b>lambdas</b>. We did not talk about binding
  390. variables, we will do this in <a href="#sec-7">Define</a>, but we can still use lambdas now. Remember that Lisp
  391. interpretes the first argument of a list in the source code as a function and the rest as the
  392. arguments. The <code>lambda</code> special form evaluates to a <b>regular function object</b> that can then stand in
  393. the first position of the function call list. The basic syntax for the lambda special form is:
  394. \[\texttt{(lambda (arg1 arg2 ...) (body1) ...)}\] the first arguemnt to <code>lambda</code> is a list of the
  395. arguments. All the following arguments will be the body of the lambda. They will be executed when
  396. the lambda is invoked. The return value of a lambda is the value of the last evaluated expression in
  397. the body.
  398. </p>
  399. <p>
  400. Probably the simplest function to write as a lambda is the identity function. It takes one argument
  401. and returns it. The identity lambda and a few other simple examples of lambdas can be seen in
  402. <a href="#code:simple-lambdas">3</a>.
  403. </p>
  404. <div class="org-src-container">
  405. <label class="org-src-name">Some simle lambdas</label>
  406. <pre class="src src-slime" id="code:simple-lambdas"><span style="color: #ff8c00;">(</span>printf <span style="color: #ff1493;">(</span><span style="color: #7fff00;">(</span><span style="color: #859900;">lambda</span> <span style="color: #00bfff;">(</span>x<span style="color: #00bfff;">)</span> x<span style="color: #7fff00;">)</span> 1<span style="color: #ff1493;">)</span><span style="color: #ff8c00;">)</span>
  407. <span style="color: #ff8c00;">(</span>printf <span style="color: #ff1493;">(</span><span style="color: #7fff00;">(</span><span style="color: #859900;">lambda</span> <span style="color: #00bfff;">(</span>x y<span style="color: #00bfff;">)</span> <span style="color: #00bfff;">(</span><span style="color: #859900;">+</span> x y<span style="color: #00bfff;">)</span><span style="color: #7fff00;">)</span> 3 5<span style="color: #ff1493;">)</span><span style="color: #ff8c00;">)</span>
  408. <span style="color: #ff8c00;">(</span>printf <span style="color: #ff1493;">(</span><span style="color: #7fff00;">(</span><span style="color: #859900;">lambda</span> <span style="color: #00bfff;">(</span>x y z<span style="color: #00bfff;">)</span> <span style="color: #00bfff;">(</span><span style="color: #859900;">list</span> x y z<span style="color: #00bfff;">)</span><span style="color: #7fff00;">)</span> 1 2 3<span style="color: #ff1493;">)</span><span style="color: #ff8c00;">)</span>
  409. </pre>
  410. </div>
  411. <pre class="example">
  412. evaluates to =&gt;
  413. 1
  414. 8
  415. (1 2 3)
  416. </pre>
  417. <p>
  418. Additionally Slime lambdas have the possibility to take <b>optional arguments</b> in the form of <b>keyword
  419. arguemnts</b> as well as a <b>rest argument</b> which allows for accepting any number of arguments. Since
  420. these concepts are most useful when the function is actually bound to a variable, they will be
  421. introduced when we learned how to do that in <a href="#sec-7">Define</a>.
  422. </p>
  423. </div>
  424. <div id="outline-container-sec-6-1" class="outline-3">
  425. <h3 id="sec-6-1"><span class="section-number-3">6.1</span> Special lambdas</h3>
  426. <div class="outline-text-3" id="text-6-1">
  427. <p>
  428. The <code>lambda</code> special form creates a function object that represents a regular function. So the basic
  429. evaluation rules count: when the lambda is invoked all it's arguments are evaluated and then the
  430. lambda is applied to the evaluated arguments. If this is not wanted in some rare cases, the
  431. programmer also has the possibility to define a special form using <code>special-lambda</code>, which, when
  432. invoked does not evaluare any argument. The programmer has to evaluate the arguments in the body
  433. themselves using <code>eval</code>. The rest of the syntax between <code>lambda</code> and <code>special-lambda</code> are the same.
  434. </p>
  435. <div class="org-src-container">
  436. <label class="org-src-name">Special lambdas do not evaluate their arguments</label>
  437. <pre class="src src-slime" id="code:special-lambdas"><span style="color: #ff8c00;">(</span><span style="color: #ff1493;">(</span><span style="color: #859900;">lambda</span> <span style="color: #7fff00;">(</span>x<span style="color: #7fff00;">)</span> <span style="color: #7fff00;">(</span>printf x<span style="color: #7fff00;">)</span><span style="color: #ff1493;">)</span> <span style="color: #ff1493;">(</span><span style="color: #859900;">+</span> 1 2<span style="color: #ff1493;">)</span><span style="color: #ff8c00;">)</span>
  438. <span style="color: #ff8c00;">(</span><span style="color: #ff1493;">(</span><span style="color: #859900;">special-lambda</span> <span style="color: #7fff00;">(</span>x<span style="color: #7fff00;">)</span> <span style="color: #7fff00;">(</span>printf x<span style="color: #7fff00;">)</span><span style="color: #ff1493;">)</span> <span style="color: #ff1493;">(</span><span style="color: #859900;">+</span> 1 2<span style="color: #ff1493;">)</span><span style="color: #ff8c00;">)</span>
  439. <span style="color: #46BA3C; font-style: italic;">;; </span><span style="color: #46BA3C; font-style: italic;">Special lambdas make it possible to write</span>
  440. <span style="color: #46BA3C; font-style: italic;">;; </span><span style="color: #46BA3C; font-style: italic;">code that inspects code</span>
  441. <span style="color: #ff8c00;">(</span><span style="color: #ff1493;">(</span><span style="color: #859900;">special-lambda</span> <span style="color: #7fff00;">(</span>expr<span style="color: #7fff00;">)</span>
  442. <span style="color: #7fff00;">(</span>printf <span style="color: #2aa198;">"The function to be called is"</span>
  443. <span style="color: #00bfff;">(</span><span style="color: #859900;">first</span> expr<span style="color: #00bfff;">)</span>
  444. <span style="color: #2aa198;">"and the result is"</span>
  445. <span style="color: #00bfff;">(</span><span style="color: #859900;">eval</span> expr<span style="color: #00bfff;">)</span><span style="color: #7fff00;">)</span><span style="color: #ff1493;">)</span>
  446. <span style="color: #ff1493;">(</span><span style="color: #859900;">+</span> 1 2<span style="color: #ff1493;">)</span><span style="color: #ff8c00;">)</span>
  447. </pre>
  448. </div>
  449. <pre class="example">
  450. evaluates to =&gt;
  451. 3
  452. (+ 1 2)
  453. The function to be called is + and the result is 3
  454. </pre>
  455. </div>
  456. </div>
  457. </div>
  458. <div id="outline-container-sec-7" class="outline-2">
  459. <h2 id="sec-7"><span class="section-number-2">7</span> Define</h2>
  460. <div class="outline-text-2" id="text-7">
  461. <p>
  462. To assign a value to a symbol you can use the <code>define</code> built-in special form. The syntax for
  463. <code>define</code> is: \[\texttt{(define symbol value)}\] and some usages can be seen in
  464. <a href="#code:variable-defines">5</a>.
  465. </p>
  466. <div class="org-src-container">
  467. <label class="org-src-name">Simple definition of variables</label>
  468. <pre class="src src-slime" id="code:variable-defines"><span style="color: #ff8c00;">(</span><span style="color: #859900;">define</span> var1 1<span style="color: #ff8c00;">)</span>
  469. <span style="color: #ff8c00;">(</span><span style="color: #859900;">define</span> var2 <span style="color: #d33682;">"Hello World"</span><span style="color: #ff8c00;">)</span>
  470. <span style="color: #ff8c00;">(</span><span style="color: #859900;">define</span> var3 <span style="color: #ff1493;">(</span><span style="color: #859900;">+</span> 1 2<span style="color: #ff1493;">)</span><span style="color: #ff8c00;">)</span>
  471. <span style="color: #ff8c00;">(</span>printf var1 var2 var3<span style="color: #ff8c00;">)</span>
  472. </pre>
  473. </div>
  474. <pre class="example">
  475. evaluates to =&gt;
  476. 1 Hello World 3
  477. </pre>
  478. </div>
  479. <div id="outline-container-sec-7-1" class="outline-3">
  480. <h3 id="sec-7-1"><span class="section-number-3">7.1</span> Defining functions</h3>
  481. <div class="outline-text-3" id="text-7-1">
  482. <p>
  483. In <a href="#sec-6">Lambdas</a> we learned how to create function objects using the <code>lambda</code> built-in form. Using
  484. <code>define</code> every Lisp Object can be assigned to a symbol making no exception for the function objects.
  485. In <a href="#code:lambda-defines">6</a> you can see what that would look like.
  486. </p>
  487. <div class="org-src-container">
  488. <label class="org-src-name">Definition of functions using lambdas</label>
  489. <pre class="src src-slime" id="code:lambda-defines"><span style="color: #ff8c00;">(</span><span style="color: #859900;">define</span> hypothenuse
  490. <span style="color: #ff1493;">(</span><span style="color: #859900;">lambda</span> <span style="color: #7fff00;">(</span>a b<span style="color: #7fff00;">)</span>
  491. <span style="color: #7fff00;">(</span><span style="color: #859900;">**</span> <span style="color: #00bfff;">(</span><span style="color: #859900;">+</span> <span style="color: #ffff00;">(</span><span style="color: #859900;">*</span> a a<span style="color: #ffff00;">)</span> <span style="color: #ffff00;">(</span><span style="color: #859900;">*</span> b b<span style="color: #ffff00;">)</span><span style="color: #00bfff;">)</span> 0.5<span style="color: #7fff00;">)</span><span style="color: #ff1493;">)</span><span style="color: #ff8c00;">)</span>
  492. <span style="color: #ff8c00;">(</span>printf <span style="color: #ff1493;">(</span>hypothenuse 3 4<span style="color: #ff1493;">)</span><span style="color: #ff8c00;">)</span>
  493. </pre>
  494. </div>
  495. <pre class="example">
  496. evaluates to =&gt;
  497. 5
  498. </pre>
  499. <p>
  500. Since defining functions is so common, there is a syntactic shorthand that does not require to write
  501. out the whole <code>lambda</code> definition. In this case the first argument to the call to <code>define</code> is a
  502. list. The frist element of the list is the name of the function to define and the other elemens are
  503. the arguments to that function. An example can be seen in <a href="#code:function-defines">7</a>. Note that the
  504. definition looks like a call to the function we are constructing, making it easier to see what a
  505. call to that function will look like.
  506. </p>
  507. <div class="org-src-container">
  508. <label class="org-src-name">Definition of functions using the shorthand syntax of define</label>
  509. <pre class="src src-slime" id="code:function-defines"><span style="color: #ff8c00;">(</span><span style="color: #859900;">define</span> <span style="color: #ff1493;">(</span><span style="color: #b58900;">hypothenuse</span> a b<span style="color: #ff1493;">)</span>
  510. <span style="color: #ff1493;">(</span><span style="color: #859900;">**</span> <span style="color: #7fff00;">(</span><span style="color: #859900;">+</span> <span style="color: #00bfff;">(</span><span style="color: #859900;">*</span> a a<span style="color: #00bfff;">)</span> <span style="color: #00bfff;">(</span><span style="color: #859900;">*</span> b b<span style="color: #00bfff;">)</span><span style="color: #7fff00;">)</span> 0.5<span style="color: #ff1493;">)</span><span style="color: #ff8c00;">)</span>
  511. <span style="color: #ff8c00;">(</span>printf <span style="color: #ff1493;">(</span>hypothenuse 3 4<span style="color: #ff1493;">)</span><span style="color: #ff8c00;">)</span>
  512. </pre>
  513. </div>
  514. <pre class="example">
  515. evaluates to =&gt;
  516. 5
  517. </pre>
  518. </div>
  519. </div>
  520. <div id="outline-container-sec-7-2" class="outline-3">
  521. <h3 id="sec-7-2"><span class="section-number-3">7.2</span> Functions with keyword arguments</h3>
  522. <div class="outline-text-3" id="text-7-2">
  523. <p>
  524. A sometimes more convenient way of passing arguments to a function is using keyword arguments. Using
  525. keyword arguments a function call could look like this: \[\texttt{(function :arg1 value1 :arg2
  526. value2)}\] here the function accepts two arguments named <code>arg1</code> and <code>arg2</code>. The user of this
  527. function can see more clearly excatly which argument will be assigned wich value. This notation also
  528. allows for switching the argument order. The following function call is equivalent to the call
  529. above. \[\texttt{(function :arg2 value2 :arg1 value1)}\].
  530. </p>
  531. <p>
  532. For this to work however, the function must be defined to accept these keyword arguments. To do this
  533. the special marker <code>:keys</code> has to be inserted into the argument list of a <code>lambda</code> or a function
  534. <code>define</code>. All following arguments <b>must</b> be supplied as keyword arguments, <i>unless</i> they are also
  535. supplied with a default value, in which case they do not need to be supplied. To attach a default
  536. value to a keyword argument, insert <code>:defaults-to &lt;value&gt;</code> after the keyword argument name. An
  537. example of all of this can be seen in <a href="#code:keyword-args">8</a>. Important note: keyword arguments must be
  538. defined and supplied after all the regular arguments.
  539. </p>
  540. <div class="org-src-container">
  541. <label class="org-src-name">A more complex functoin definition using keyword arguments</label>
  542. <pre class="src src-slime" id="code:keyword-args"><span style="color: #ff8c00;">(</span><span style="color: #859900;">define</span> <span style="color: #ff1493;">(</span><span style="color: #b58900;">complex</span> required1 required2 <span style="color: #6c71c4;">:keys</span>
  543. key1
  544. key2 <span style="color: #6c71c4;">:defaults-to</span> 3
  545. key3<span style="color: #ff1493;">)</span>
  546. <span style="color: #ff1493;">(</span><span style="color: #859900;">*</span> <span style="color: #7fff00;">(</span><span style="color: #859900;">+</span> required1 required2<span style="color: #7fff00;">)</span>
  547. key1
  548. key2
  549. key3<span style="color: #ff1493;">)</span><span style="color: #ff8c00;">)</span>
  550. <span style="color: #ff8c00;">(</span>printf <span style="color: #ff1493;">(</span>complex 1 2 <span style="color: #6c71c4;">:key1</span> 2 <span style="color: #6c71c4;">:key2</span> 2 <span style="color: #6c71c4;">:key3</span> 3<span style="color: #ff1493;">)</span><span style="color: #ff8c00;">)</span>
  551. <span style="color: #ff8c00;">(</span>printf <span style="color: #ff1493;">(</span>complex 1 2 <span style="color: #6c71c4;">:key1</span> 2 <span style="color: #6c71c4;">:key3</span> 3<span style="color: #ff1493;">)</span><span style="color: #ff8c00;">)</span>
  552. <span style="color: #ff8c00;">(</span>printf <span style="color: #ff1493;">(</span>complex 1 2 <span style="color: #6c71c4;">:key3</span> 3 <span style="color: #6c71c4;">:key1</span> 2<span style="color: #ff1493;">)</span><span style="color: #ff8c00;">)</span>
  553. </pre>
  554. </div>
  555. <pre class="example">
  556. evaluates to =&gt;
  557. 36
  558. 54
  559. 54
  560. </pre>
  561. </div>
  562. </div>
  563. <div id="outline-container-sec-7-3" class="outline-3">
  564. <h3 id="sec-7-3"><span class="section-number-3">7.3</span> Functions with rest arguments</h3>
  565. <div class="outline-text-3" id="text-7-3">
  566. <p>
  567. If the programmer wants to create a function that can accept any number of arguments, they can use
  568. the <code>rest</code> argument. It is defined after the special marker <code>:rest</code> and after the rest argument, no
  569. other arguments can be defined. In the execution of the fuction, the rest arguent will be assigned
  570. to a list containing all the supplied values. The rest argument can be used in conjunction with the
  571. other argument types, regular arguments and keyword arguments.
  572. </p>
  573. <div class="org-src-container">
  574. <label class="org-src-name">A more complex functoin definition using keyword arguments</label>
  575. <pre class="src src-slime" id="code:rest-args"><span style="color: #ff8c00;">(</span><span style="color: #859900;">define</span> <span style="color: #ff1493;">(</span><span style="color: #b58900;">execute-operation</span> operation
  576. <span style="color: #6c71c4;">:keys</span>
  577. do-logging <span style="color: #6c71c4;">:defaults-to</span> <span style="color: #7fff00;">()</span>
  578. <span style="color: #6c71c4;">:rest</span> values<span style="color: #ff1493;">)</span>
  579. <span style="color: #ff1493;">(</span><span style="color: #859900;">define</span> result <span style="color: #7fff00;">(</span>apply operation values<span style="color: #7fff00;">)</span><span style="color: #ff1493;">)</span>
  580. <span style="color: #ff1493;">(</span>when do-logging
  581. <span style="color: #7fff00;">(</span>printf <span style="color: #2aa198;">"Executing operation"</span>
  582. operation
  583. <span style="color: #2aa198;">"agains the values"</span>
  584. values
  585. <span style="color: #2aa198;">"yielded:"</span>
  586. result<span style="color: #7fff00;">)</span><span style="color: #ff1493;">)</span>
  587. result<span style="color: #ff8c00;">)</span>
  588. <span style="color: #ff8c00;">(</span>printf <span style="color: #ff1493;">(</span>execute-operation '<span style="color: #859900;">+</span> 1 2 3<span style="color: #ff1493;">)</span><span style="color: #ff8c00;">)</span>
  589. <span style="color: #ff8c00;">(</span>printf <span style="color: #ff1493;">(</span>execute-operation '<span style="color: #859900;">*</span>
  590. <span style="color: #6c71c4;">:do-logging</span> t
  591. 10 11<span style="color: #ff1493;">)</span><span style="color: #ff8c00;">)</span>
  592. </pre>
  593. </div>
  594. <pre class="example">
  595. evaluates to =&gt;
  596. 6
  597. Executing operation * agains the values (10 11) yielded: 110
  598. 110
  599. </pre>
  600. </div>
  601. </div>
  602. </div>
  603. <div id="outline-container-sec-8" class="outline-2">
  604. <h2 id="sec-8"><span class="section-number-2">8</span> Environments</h2>
  605. </div>
  606. <div id="outline-container-sec-9" class="outline-2">
  607. <h2 id="sec-9"><span class="section-number-2">9</span> Macros</h2>
  608. </div>
  609. <div id="outline-container-sec-" class="outline-2">
  610. <h2 id="sec-">Built-in functions</h2>
  611. <div class="outline-text-2" id="text-">
  612. <p>
  613. \hrule
  614. </p>
  615. </div>
  616. <div id="outline-container-sec-" class="outline-3">
  617. <h3 id="sec-"><code>=</code></h3>
  618. <div class="outline-text-3" id="text-">
  619. <dl class="org-dl">
  620. <dt> defined in </dt><dd><code>src/./built_ins.cpp:158:0</code>
  621. </dd>
  622. <dt> type </dt><dd><code>:cfunction</code>
  623. </dd>
  624. <dt> docu </dt><dd><p>
  625. Takes 0 or more arguments and returns <code>t</code> if all arguments are equal and <code>()</code> otherwise.
  626. </p>
  627. </dd>
  628. </dl>
  629. <p>
  630. \hrule
  631. </p>
  632. </div>
  633. </div>
  634. <div id="outline-container-sec-" class="outline-3">
  635. <h3 id="sec-"><code>&gt;</code></h3>
  636. <div class="outline-text-3" id="text-">
  637. <dl class="org-dl">
  638. <dt> defined in </dt><dd><code>src/./built_ins.cpp:175:0</code>
  639. </dd>
  640. <dt> type </dt><dd><code>:cfunction</code>
  641. </dd>
  642. <dt> docu </dt><dd><p>
  643. TODO
  644. </p>
  645. </dd>
  646. </dl>
  647. <p>
  648. \hrule
  649. </p>
  650. </div>
  651. </div>
  652. <div id="outline-container-sec-" class="outline-3">
  653. <h3 id="sec-"><code>&gt;=</code></h3>
  654. <div class="outline-text-3" id="text-">
  655. <dl class="org-dl">
  656. <dt> defined in </dt><dd><code>src/./built_ins.cpp:193:0</code>
  657. </dd>
  658. <dt> type </dt><dd><code>:cfunction</code>
  659. </dd>
  660. <dt> docu </dt><dd><p>
  661. TODO
  662. </p>
  663. </dd>
  664. </dl>
  665. <p>
  666. \hrule
  667. </p>
  668. </div>
  669. </div>
  670. <div id="outline-container-sec-" class="outline-3">
  671. <h3 id="sec-"><code>&lt;</code></h3>
  672. <div class="outline-text-3" id="text-">
  673. <dl class="org-dl">
  674. <dt> defined in </dt><dd><code>src/./built_ins.cpp:211:0</code>
  675. </dd>
  676. <dt> type </dt><dd><code>:cfunction</code>
  677. </dd>
  678. <dt> docu </dt><dd><p>
  679. TODO
  680. </p>
  681. </dd>
  682. </dl>
  683. <p>
  684. \hrule
  685. </p>
  686. </div>
  687. </div>
  688. <div id="outline-container-sec-" class="outline-3">
  689. <h3 id="sec-"><code>&lt;=</code></h3>
  690. <div class="outline-text-3" id="text-">
  691. <dl class="org-dl">
  692. <dt> defined in </dt><dd><code>src/./built_ins.cpp:231:0</code>
  693. </dd>
  694. <dt> type </dt><dd><code>:cfunction</code>
  695. </dd>
  696. <dt> docu </dt><dd><p>
  697. TODO
  698. </p>
  699. </dd>
  700. </dl>
  701. <p>
  702. \hrule
  703. </p>
  704. </div>
  705. </div>
  706. <div id="outline-container-sec-" class="outline-3">
  707. <h3 id="sec-"><code>+</code></h3>
  708. <div class="outline-text-3" id="text-">
  709. <dl class="org-dl">
  710. <dt> defined in </dt><dd><code>src/./built_ins.cpp:249:0</code>
  711. </dd>
  712. <dt> type </dt><dd><code>:cfunction</code>
  713. </dd>
  714. <dt> docu </dt><dd><p>
  715. TODO
  716. </p>
  717. </dd>
  718. </dl>
  719. <p>
  720. \hrule
  721. </p>
  722. </div>
  723. </div>
  724. <div id="outline-container-sec-" class="outline-3">
  725. <h3 id="sec-"><code>-</code></h3>
  726. <div class="outline-text-3" id="text-">
  727. <dl class="org-dl">
  728. <dt> defined in </dt><dd><code>src/./built_ins.cpp:262:0</code>
  729. </dd>
  730. <dt> type </dt><dd><code>:cfunction</code>
  731. </dd>
  732. <dt> docu </dt><dd><p>
  733. TODO
  734. </p>
  735. </dd>
  736. </dl>
  737. <p>
  738. \hrule
  739. </p>
  740. </div>
  741. </div>
  742. <div id="outline-container-sec-" class="outline-3">
  743. <h3 id="sec-"><code>*</code></h3>
  744. <div class="outline-text-3" id="text-">
  745. <dl class="org-dl">
  746. <dt> defined in </dt><dd><code>src/./built_ins.cpp:285:0</code>
  747. </dd>
  748. <dt> type </dt><dd><code>:cfunction</code>
  749. </dd>
  750. <dt> docu </dt><dd><p>
  751. TODO
  752. </p>
  753. </dd>
  754. </dl>
  755. <p>
  756. \hrule
  757. </p>
  758. </div>
  759. </div>
  760. <div id="outline-container-sec-" class="outline-3">
  761. <h3 id="sec-"><code>/</code></h3>
  762. <div class="outline-text-3" id="text-">
  763. <dl class="org-dl">
  764. <dt> defined in </dt><dd><code>src/./built_ins.cpp:306:0</code>
  765. </dd>
  766. <dt> type </dt><dd><code>:cfunction</code>
  767. </dd>
  768. <dt> docu </dt><dd><p>
  769. TODO
  770. </p>
  771. </dd>
  772. </dl>
  773. <p>
  774. \hrule
  775. </p>
  776. </div>
  777. </div>
  778. <div id="outline-container-sec-" class="outline-3">
  779. <h3 id="sec-"><code>**</code></h3>
  780. <div class="outline-text-3" id="text-">
  781. <dl class="org-dl">
  782. <dt> defined in </dt><dd><code>src/./built_ins.cpp:327:0</code>
  783. </dd>
  784. <dt> type </dt><dd><code>:cfunction</code>
  785. </dd>
  786. <dt> docu </dt><dd><p>
  787. TODO
  788. </p>
  789. </dd>
  790. </dl>
  791. <p>
  792. \hrule
  793. </p>
  794. </div>
  795. </div>
  796. <div id="outline-container-sec-" class="outline-3">
  797. <h3 id="sec-"><code>%</code></h3>
  798. <div class="outline-text-3" id="text-">
  799. <dl class="org-dl">
  800. <dt> defined in </dt><dd><code>src/./built_ins.cpp:343:0</code>
  801. </dd>
  802. <dt> type </dt><dd><code>:cfunction</code>
  803. </dd>
  804. <dt> docu </dt><dd><p>
  805. TODO
  806. </p>
  807. </dd>
  808. </dl>
  809. <p>
  810. \hrule
  811. </p>
  812. </div>
  813. </div>
  814. <div id="outline-container-sec-" class="outline-3">
  815. <h3 id="sec-"><code>assert</code></h3>
  816. <div class="outline-text-3" id="text-">
  817. <dl class="org-dl">
  818. <dt> defined in </dt><dd><code>src/./built_ins.cpp:359:0</code>
  819. </dd>
  820. <dt> type </dt><dd><code>:cfunction</code>
  821. </dd>
  822. <dt> docu </dt><dd><p>
  823. TODO
  824. </p>
  825. </dd>
  826. </dl>
  827. <p>
  828. \hrule
  829. </p>
  830. </div>
  831. </div>
  832. <div id="outline-container-sec-" class="outline-3">
  833. <h3 id="sec-"><code>define</code></h3>
  834. <div class="outline-text-3" id="text-">
  835. <dl class="org-dl">
  836. <dt> defined in </dt><dd><code>src/./built_ins.cpp:371:0</code>
  837. </dd>
  838. <dt> type </dt><dd><code>:cfunction</code>
  839. </dd>
  840. <dt> docu </dt><dd><p>
  841. TODO
  842. </p>
  843. </dd>
  844. </dl>
  845. <p>
  846. \hrule
  847. </p>
  848. </div>
  849. </div>
  850. <div id="outline-container-sec-" class="outline-3">
  851. <h3 id="sec-"><code>mutate</code></h3>
  852. <div class="outline-text-3" id="text-">
  853. <dl class="org-dl">
  854. <dt> defined in </dt><dd><code>src/./built_ins.cpp:433:0</code>
  855. </dd>
  856. <dt> type </dt><dd><code>:cfunction</code>
  857. </dd>
  858. <dt> docu </dt><dd><p>
  859. TODO
  860. </p>
  861. </dd>
  862. </dl>
  863. <p>
  864. \hrule
  865. </p>
  866. </div>
  867. </div>
  868. <div id="outline-container-sec-" class="outline-3">
  869. <h3 id="sec-"><code>if</code></h3>
  870. <div class="outline-text-3" id="text-">
  871. <dl class="org-dl">
  872. <dt> defined in </dt><dd><code>src/./built_ins.cpp:458:0</code>
  873. </dd>
  874. <dt> type </dt><dd><code>:cfunction</code>
  875. </dd>
  876. <dt> docu </dt><dd><p>
  877. TODO
  878. </p>
  879. </dd>
  880. </dl>
  881. <p>
  882. \hrule
  883. </p>
  884. </div>
  885. </div>
  886. <div id="outline-container-sec-" class="outline-3">
  887. <h3 id="sec-"><code>quote</code></h3>
  888. <div class="outline-text-3" id="text-">
  889. <dl class="org-dl">
  890. <dt> defined in </dt><dd><code>src/./built_ins.cpp:480:0</code>
  891. </dd>
  892. <dt> type </dt><dd><code>:cfunction</code>
  893. </dd>
  894. <dt> docu </dt><dd><p>
  895. TODO
  896. </p>
  897. </dd>
  898. </dl>
  899. <p>
  900. \hrule
  901. </p>
  902. </div>
  903. </div>
  904. <div id="outline-container-sec-" class="outline-3">
  905. <h3 id="sec-"><code>quasiquote</code></h3>
  906. <div class="outline-text-3" id="text-">
  907. <dl class="org-dl">
  908. <dt> defined in </dt><dd><code>src/./built_ins.cpp:485:0</code>
  909. </dd>
  910. <dt> type </dt><dd><code>:cfunction</code>
  911. </dd>
  912. <dt> docu </dt><dd><p>
  913. TODO
  914. </p>
  915. </dd>
  916. </dl>
  917. <p>
  918. \hrule
  919. </p>
  920. </div>
  921. </div>
  922. <div id="outline-container-sec-" class="outline-3">
  923. <h3 id="sec-"><code>and</code></h3>
  924. <div class="outline-text-3" id="text-">
  925. <dl class="org-dl">
  926. <dt> defined in </dt><dd><code>src/./built_ins.cpp:583:0</code>
  927. </dd>
  928. <dt> type </dt><dd><code>:cfunction</code>
  929. </dd>
  930. <dt> docu </dt><dd><p>
  931. TODO
  932. </p>
  933. </dd>
  934. </dl>
  935. <p>
  936. \hrule
  937. </p>
  938. </div>
  939. </div>
  940. <div id="outline-container-sec-" class="outline-3">
  941. <h3 id="sec-"><code>or</code></h3>
  942. <div class="outline-text-3" id="text-">
  943. <dl class="org-dl">
  944. <dt> defined in </dt><dd><code>src/./built_ins.cpp:594:0</code>
  945. </dd>
  946. <dt> type </dt><dd><code>:cfunction</code>
  947. </dd>
  948. <dt> docu </dt><dd><p>
  949. TODO
  950. </p>
  951. </dd>
  952. </dl>
  953. <p>
  954. \hrule
  955. </p>
  956. </div>
  957. </div>
  958. <div id="outline-container-sec-" class="outline-3">
  959. <h3 id="sec-"><code>not</code></h3>
  960. <div class="outline-text-3" id="text-">
  961. <dl class="org-dl">
  962. <dt> defined in </dt><dd><code>src/./built_ins.cpp:605:0</code>
  963. </dd>
  964. <dt> type </dt><dd><code>:cfunction</code>
  965. </dd>
  966. <dt> docu </dt><dd><p>
  967. TODO
  968. </p>
  969. </dd>
  970. </dl>
  971. <p>
  972. \hrule
  973. </p>
  974. </div>
  975. </div>
  976. <div id="outline-container-sec-" class="outline-3">
  977. <h3 id="sec-"><code>while</code></h3>
  978. <div class="outline-text-3" id="text-">
  979. <dl class="org-dl">
  980. <dt> defined in </dt><dd><code>src/./built_ins.cpp:615:0</code>
  981. </dd>
  982. <dt> type </dt><dd><code>:cfunction</code>
  983. </dd>
  984. <dt> docu </dt><dd><p>
  985. TODO
  986. </p>
  987. </dd>
  988. </dl>
  989. <p>
  990. \hrule
  991. </p>
  992. </div>
  993. </div>
  994. <div id="outline-container-sec-" class="outline-3">
  995. <h3 id="sec-"><code>lambda</code></h3>
  996. <div class="outline-text-3" id="text-">
  997. <dl class="org-dl">
  998. <dt> defined in </dt><dd><code>src/./built_ins.cpp:693:0</code>
  999. </dd>
  1000. <dt> type </dt><dd><code>:cfunction</code>
  1001. </dd>
  1002. <dt> docu </dt><dd><p>
  1003. TODO
  1004. </p>
  1005. </dd>
  1006. </dl>
  1007. <p>
  1008. \hrule
  1009. </p>
  1010. </div>
  1011. </div>
  1012. <div id="outline-container-sec-" class="outline-3">
  1013. <h3 id="sec-"><code>special-lambda</code></h3>
  1014. <div class="outline-text-3" id="text-">
  1015. <dl class="org-dl">
  1016. <dt> defined in </dt><dd><code>src/./built_ins.cpp:705:0</code>
  1017. </dd>
  1018. <dt> type </dt><dd><code>:cfunction</code>
  1019. </dd>
  1020. <dt> docu </dt><dd><p>
  1021. TODO
  1022. </p>
  1023. </dd>
  1024. </dl>
  1025. <p>
  1026. \hrule
  1027. </p>
  1028. </div>
  1029. </div>
  1030. <div id="outline-container-sec-" class="outline-3">
  1031. <h3 id="sec-"><code>eval</code></h3>
  1032. <div class="outline-text-3" id="text-">
  1033. <dl class="org-dl">
  1034. <dt> defined in </dt><dd><code>src/./built_ins.cpp:713:0</code>
  1035. </dd>
  1036. <dt> type </dt><dd><code>:cfunction</code>
  1037. </dd>
  1038. <dt> docu </dt><dd><p>
  1039. TODO
  1040. </p>
  1041. </dd>
  1042. </dl>
  1043. <p>
  1044. \hrule
  1045. </p>
  1046. </div>
  1047. </div>
  1048. <div id="outline-container-sec-" class="outline-3">
  1049. <h3 id="sec-"><code>begin</code></h3>
  1050. <div class="outline-text-3" id="text-">
  1051. <dl class="org-dl">
  1052. <dt> defined in </dt><dd><code>src/./built_ins.cpp:725:0</code>
  1053. </dd>
  1054. <dt> type </dt><dd><code>:cfunction</code>
  1055. </dd>
  1056. <dt> docu </dt><dd><p>
  1057. TODO
  1058. </p>
  1059. </dd>
  1060. </dl>
  1061. <p>
  1062. \hrule
  1063. </p>
  1064. </div>
  1065. </div>
  1066. <div id="outline-container-sec-" class="outline-3">
  1067. <h3 id="sec-"><code>list</code></h3>
  1068. <div class="outline-text-3" id="text-">
  1069. <dl class="org-dl">
  1070. <dt> defined in </dt><dd><code>src/./built_ins.cpp:741:0</code>
  1071. </dd>
  1072. <dt> type </dt><dd><code>:cfunction</code>
  1073. </dd>
  1074. <dt> docu </dt><dd><p>
  1075. TODO
  1076. </p>
  1077. </dd>
  1078. </dl>
  1079. <p>
  1080. \hrule
  1081. </p>
  1082. </div>
  1083. </div>
  1084. <div id="outline-container-sec-" class="outline-3">
  1085. <h3 id="sec-"><code>pair</code></h3>
  1086. <div class="outline-text-3" id="text-">
  1087. <dl class="org-dl">
  1088. <dt> defined in </dt><dd><code>src/./built_ins.cpp:745:0</code>
  1089. </dd>
  1090. <dt> type </dt><dd><code>:cfunction</code>
  1091. </dd>
  1092. <dt> docu </dt><dd><p>
  1093. TODO
  1094. </p>
  1095. </dd>
  1096. </dl>
  1097. <p>
  1098. \hrule
  1099. </p>
  1100. </div>
  1101. </div>
  1102. <div id="outline-container-sec-" class="outline-3">
  1103. <h3 id="sec-"><code>first</code></h3>
  1104. <div class="outline-text-3" id="text-">
  1105. <dl class="org-dl">
  1106. <dt> defined in </dt><dd><code>src/./built_ins.cpp:755:0</code>
  1107. </dd>
  1108. <dt> type </dt><dd><code>:cfunction</code>
  1109. </dd>
  1110. <dt> docu </dt><dd><p>
  1111. TODO
  1112. </p>
  1113. </dd>
  1114. </dl>
  1115. <p>
  1116. \hrule
  1117. </p>
  1118. </div>
  1119. </div>
  1120. <div id="outline-container-sec-" class="outline-3">
  1121. <h3 id="sec-"><code>rest</code></h3>
  1122. <div class="outline-text-3" id="text-">
  1123. <dl class="org-dl">
  1124. <dt> defined in </dt><dd><code>src/./built_ins.cpp:766:0</code>
  1125. </dd>
  1126. <dt> type </dt><dd><code>:cfunction</code>
  1127. </dd>
  1128. <dt> docu </dt><dd><p>
  1129. TODO
  1130. </p>
  1131. </dd>
  1132. </dl>
  1133. <p>
  1134. \hrule
  1135. </p>
  1136. </div>
  1137. </div>
  1138. <div id="outline-container-sec-" class="outline-3">
  1139. <h3 id="sec-"><code>set-type</code></h3>
  1140. <div class="outline-text-3" id="text-">
  1141. <dl class="org-dl">
  1142. <dt> defined in </dt><dd><code>src/./built_ins.cpp:777:0</code>
  1143. </dd>
  1144. <dt> type </dt><dd><code>:cfunction</code>
  1145. </dd>
  1146. <dt> docu </dt><dd><p>
  1147. TODO
  1148. </p>
  1149. </dd>
  1150. </dl>
  1151. <p>
  1152. \hrule
  1153. </p>
  1154. </div>
  1155. </div>
  1156. <div id="outline-container-sec-" class="outline-3">
  1157. <h3 id="sec-"><code>delete-type</code></h3>
  1158. <div class="outline-text-3" id="text-">
  1159. <dl class="org-dl">
  1160. <dt> defined in </dt><dd><code>src/./built_ins.cpp:789:0</code>
  1161. </dd>
  1162. <dt> type </dt><dd><code>:cfunction</code>
  1163. </dd>
  1164. <dt> docu </dt><dd><p>
  1165. TODO
  1166. </p>
  1167. </dd>
  1168. </dl>
  1169. <p>
  1170. \hrule
  1171. </p>
  1172. </div>
  1173. </div>
  1174. <div id="outline-container-sec-" class="outline-3">
  1175. <h3 id="sec-"><code>type</code></h3>
  1176. <div class="outline-text-3" id="text-">
  1177. <dl class="org-dl">
  1178. <dt> defined in </dt><dd><code>src/./built_ins.cpp:796:0</code>
  1179. </dd>
  1180. <dt> type </dt><dd><code>:cfunction</code>
  1181. </dd>
  1182. <dt> docu </dt><dd><p>
  1183. TODO
  1184. </p>
  1185. </dd>
  1186. </dl>
  1187. <p>
  1188. \hrule
  1189. </p>
  1190. </div>
  1191. </div>
  1192. <div id="outline-container-sec-" class="outline-3">
  1193. <h3 id="sec-"><code>info</code></h3>
  1194. <div class="outline-text-3" id="text-">
  1195. <dl class="org-dl">
  1196. <dt> defined in </dt><dd><code>src/./built_ins.cpp:828:0</code>
  1197. </dd>
  1198. <dt> type </dt><dd><code>:cfunction</code>
  1199. </dd>
  1200. <dt> docu </dt><dd><p>
  1201. TODO
  1202. </p>
  1203. </dd>
  1204. </dl>
  1205. <p>
  1206. \hrule
  1207. </p>
  1208. </div>
  1209. </div>
  1210. <div id="outline-container-sec-" class="outline-3">
  1211. <h3 id="sec-"><code>show</code></h3>
  1212. <div class="outline-text-3" id="text-">
  1213. <dl class="org-dl">
  1214. <dt> defined in </dt><dd><code>src/./built_ins.cpp:910:0</code>
  1215. </dd>
  1216. <dt> type </dt><dd><code>:cfunction</code>
  1217. </dd>
  1218. <dt> docu </dt><dd><p>
  1219. TODO
  1220. </p>
  1221. </dd>
  1222. </dl>
  1223. <p>
  1224. \hrule
  1225. </p>
  1226. </div>
  1227. </div>
  1228. <div id="outline-container-sec-" class="outline-3">
  1229. <h3 id="sec-"><code>addr-of</code></h3>
  1230. <div class="outline-text-3" id="text-">
  1231. <dl class="org-dl">
  1232. <dt> defined in </dt><dd><code>src/./built_ins.cpp:922:0</code>
  1233. </dd>
  1234. <dt> type </dt><dd><code>:cfunction</code>
  1235. </dd>
  1236. <dt> docu </dt><dd><p>
  1237. TODO
  1238. </p>
  1239. </dd>
  1240. </dl>
  1241. <p>
  1242. \hrule
  1243. </p>
  1244. </div>
  1245. </div>
  1246. <div id="outline-container-sec-" class="outline-3">
  1247. <h3 id="sec-"><code>generate-docs</code></h3>
  1248. <div class="outline-text-3" id="text-">
  1249. <dl class="org-dl">
  1250. <dt> defined in </dt><dd><code>src/./built_ins.cpp:928:0</code>
  1251. </dd>
  1252. <dt> type </dt><dd><code>:cfunction</code>
  1253. </dd>
  1254. <dt> docu </dt><dd><p>
  1255. TODO
  1256. </p>
  1257. </dd>
  1258. </dl>
  1259. <p>
  1260. \hrule
  1261. </p>
  1262. </div>
  1263. </div>
  1264. <div id="outline-container-sec-" class="outline-3">
  1265. <h3 id="sec-"><code>print</code></h3>
  1266. <div class="outline-text-3" id="text-">
  1267. <dl class="org-dl">
  1268. <dt> defined in </dt><dd><code>src/./built_ins.cpp:937:0</code>
  1269. </dd>
  1270. <dt> type </dt><dd><code>:cfunction</code>
  1271. </dd>
  1272. <dt> docu </dt><dd><p>
  1273. TODO
  1274. </p>
  1275. </dd>
  1276. </dl>
  1277. <p>
  1278. \hrule
  1279. </p>
  1280. </div>
  1281. </div>
  1282. <div id="outline-container-sec-" class="outline-3">
  1283. <h3 id="sec-"><code>read</code></h3>
  1284. <div class="outline-text-3" id="text-">
  1285. <dl class="org-dl">
  1286. <dt> defined in </dt><dd><code>src/./built_ins.cpp:945:0</code>
  1287. </dd>
  1288. <dt> type </dt><dd><code>:cfunction</code>
  1289. </dd>
  1290. <dt> docu </dt><dd><p>
  1291. TODO
  1292. </p>
  1293. </dd>
  1294. </dl>
  1295. <p>
  1296. \hrule
  1297. </p>
  1298. </div>
  1299. </div>
  1300. <div id="outline-container-sec-" class="outline-3">
  1301. <h3 id="sec-"><code>exit</code></h3>
  1302. <div class="outline-text-3" id="text-">
  1303. <dl class="org-dl">
  1304. <dt> defined in </dt><dd><code>src/./built_ins.cpp:962:0</code>
  1305. </dd>
  1306. <dt> type </dt><dd><code>:cfunction</code>
  1307. </dd>
  1308. <dt> docu </dt><dd><p>
  1309. TODO
  1310. </p>
  1311. </dd>
  1312. </dl>
  1313. <p>
  1314. \hrule
  1315. </p>
  1316. </div>
  1317. </div>
  1318. <div id="outline-container-sec-" class="outline-3">
  1319. <h3 id="sec-"><code>break</code></h3>
  1320. <div class="outline-text-3" id="text-">
  1321. <dl class="org-dl">
  1322. <dt> defined in </dt><dd><code>src/./built_ins.cpp:973:0</code>
  1323. </dd>
  1324. <dt> type </dt><dd><code>:cfunction</code>
  1325. </dd>
  1326. <dt> docu </dt><dd><p>
  1327. TODO
  1328. </p>
  1329. </dd>
  1330. </dl>
  1331. <p>
  1332. \hrule
  1333. </p>
  1334. </div>
  1335. </div>
  1336. <div id="outline-container-sec-" class="outline-3">
  1337. <h3 id="sec-"><code>memstat</code></h3>
  1338. <div class="outline-text-3" id="text-">
  1339. <dl class="org-dl">
  1340. <dt> defined in </dt><dd><code>src/./built_ins.cpp:978:0</code>
  1341. </dd>
  1342. <dt> type </dt><dd><code>:cfunction</code>
  1343. </dd>
  1344. <dt> docu </dt><dd><p>
  1345. TODO
  1346. </p>
  1347. </dd>
  1348. </dl>
  1349. <p>
  1350. \hrule
  1351. </p>
  1352. </div>
  1353. </div>
  1354. <div id="outline-container-sec-" class="outline-3">
  1355. <h3 id="sec-"><code>try</code></h3>
  1356. <div class="outline-text-3" id="text-">
  1357. <dl class="org-dl">
  1358. <dt> defined in </dt><dd><code>src/./built_ins.cpp:982:0</code>
  1359. </dd>
  1360. <dt> type </dt><dd><code>:cfunction</code>
  1361. </dd>
  1362. <dt> docu </dt><dd><p>
  1363. TODO
  1364. </p>
  1365. </dd>
  1366. </dl>
  1367. <p>
  1368. \hrule
  1369. </p>
  1370. </div>
  1371. </div>
  1372. <div id="outline-container-sec-" class="outline-3">
  1373. <h3 id="sec-"><code>load</code></h3>
  1374. <div class="outline-text-3" id="text-">
  1375. <dl class="org-dl">
  1376. <dt> defined in </dt><dd><code>src/./built_ins.cpp:997:0</code>
  1377. </dd>
  1378. <dt> type </dt><dd><code>:cfunction</code>
  1379. </dd>
  1380. <dt> docu </dt><dd><p>
  1381. TODO
  1382. </p>
  1383. </dd>
  1384. </dl>
  1385. <p>
  1386. \hrule
  1387. </p>
  1388. </div>
  1389. </div>
  1390. <div id="outline-container-sec-" class="outline-3">
  1391. <h3 id="sec-"><code>import</code></h3>
  1392. <div class="outline-text-3" id="text-">
  1393. <dl class="org-dl">
  1394. <dt> defined in </dt><dd><code>src/./built_ins.cpp:1008:0</code>
  1395. </dd>
  1396. <dt> type </dt><dd><code>:cfunction</code>
  1397. </dd>
  1398. <dt> docu </dt><dd><p>
  1399. TODO
  1400. </p>
  1401. </dd>
  1402. </dl>
  1403. <p>
  1404. \hrule
  1405. </p>
  1406. </div>
  1407. </div>
  1408. <div id="outline-container-sec-" class="outline-3">
  1409. <h3 id="sec-"><code>copy</code></h3>
  1410. <div class="outline-text-3" id="text-">
  1411. <dl class="org-dl">
  1412. <dt> defined in </dt><dd><code>src/./built_ins.cpp:1019:0</code>
  1413. </dd>
  1414. <dt> type </dt><dd><code>:cfunction</code>
  1415. </dd>
  1416. <dt> docu </dt><dd><p>
  1417. TODO
  1418. </p>
  1419. </dd>
  1420. </dl>
  1421. <p>
  1422. \hrule
  1423. </p>
  1424. </div>
  1425. </div>
  1426. <div id="outline-container-sec-" class="outline-3">
  1427. <h3 id="sec-"><code>error</code></h3>
  1428. <div class="outline-text-3" id="text-">
  1429. <dl class="org-dl">
  1430. <dt> defined in </dt><dd><code>src/./built_ins.cpp:1027:0</code>
  1431. </dd>
  1432. <dt> type </dt><dd><code>:cfunction</code>
  1433. </dd>
  1434. <dt> docu </dt><dd><p>
  1435. TODO
  1436. </p>
  1437. </dd>
  1438. </dl>
  1439. <p>
  1440. \hrule
  1441. </p>
  1442. </div>
  1443. </div>
  1444. <div id="outline-container-sec-" class="outline-3">
  1445. <h3 id="sec-"><code>symbol-&gt;keyword</code></h3>
  1446. <div class="outline-text-3" id="text-">
  1447. <dl class="org-dl">
  1448. <dt> defined in </dt><dd><code>src/./built_ins.cpp:1034:0</code>
  1449. </dd>
  1450. <dt> type </dt><dd><code>:cfunction</code>
  1451. </dd>
  1452. <dt> docu </dt><dd><p>
  1453. TODO
  1454. </p>
  1455. </dd>
  1456. </dl>
  1457. <p>
  1458. \hrule
  1459. </p>
  1460. </div>
  1461. </div>
  1462. <div id="outline-container-sec-" class="outline-3">
  1463. <h3 id="sec-"><code>string-&gt;symbol</code></h3>
  1464. <div class="outline-text-3" id="text-">
  1465. <dl class="org-dl">
  1466. <dt> defined in </dt><dd><code>src/./built_ins.cpp:1043:0</code>
  1467. </dd>
  1468. <dt> type </dt><dd><code>:cfunction</code>
  1469. </dd>
  1470. <dt> docu </dt><dd><p>
  1471. TODO
  1472. </p>
  1473. </dd>
  1474. </dl>
  1475. <p>
  1476. \hrule
  1477. </p>
  1478. </div>
  1479. </div>
  1480. <div id="outline-container-sec-" class="outline-3">
  1481. <h3 id="sec-"><code>symbol-&gt;string</code></h3>
  1482. <div class="outline-text-3" id="text-">
  1483. <dl class="org-dl">
  1484. <dt> defined in </dt><dd><code>src/./built_ins.cpp:1055:0</code>
  1485. </dd>
  1486. <dt> type </dt><dd><code>:cfunction</code>
  1487. </dd>
  1488. <dt> docu </dt><dd><p>
  1489. TODO
  1490. </p>
  1491. </dd>
  1492. </dl>
  1493. <p>
  1494. \hrule
  1495. </p>
  1496. </div>
  1497. </div>
  1498. <div id="outline-container-sec-" class="outline-3">
  1499. <h3 id="sec-"><code>concat-strings</code></h3>
  1500. <div class="outline-text-3" id="text-">
  1501. <dl class="org-dl">
  1502. <dt> defined in </dt><dd><code>src/./built_ins.cpp:1064:0</code>
  1503. </dd>
  1504. <dt> type </dt><dd><code>:cfunction</code>
  1505. </dd>
  1506. <dt> docu </dt><dd><p>
  1507. TODO
  1508. </p>
  1509. </dd>
  1510. </dl>
  1511. <p>
  1512. \hrule
  1513. </p>
  1514. </div>
  1515. </div>
  1516. <div id="outline-container-sec-" class="outline-3">
  1517. <h3 id="sec-"><code>pe</code></h3>
  1518. <div class="outline-text-3" id="text-">
  1519. <dl class="org-dl">
  1520. <dt> defined in </dt><dd><code>pre.slime:2:40</code>
  1521. </dd>
  1522. <dt> type </dt><dd><code>:macro</code>
  1523. </dd>
  1524. <dt> arguments </dt><dd>:
  1525. <dl class="org-dl">
  1526. <dt> postitional </dt><dd><code>expr</code>
  1527. </dd>
  1528. </dl>
  1529. </dd>
  1530. <dt> docu </dt><dd>none
  1531. </dd>
  1532. </dl>
  1533. <p>
  1534. \hrule
  1535. </p>
  1536. </div>
  1537. </div>
  1538. <div id="outline-container-sec-" class="outline-3">
  1539. <h3 id="sec-"><code>when</code></h3>
  1540. <div class="outline-text-3" id="text-">
  1541. <dl class="org-dl">
  1542. <dt> defined in </dt><dd><code>pre.slime:8:37</code>
  1543. </dd>
  1544. <dt> type </dt><dd><code>:macro</code>
  1545. </dd>
  1546. <dt> arguments </dt><dd>:
  1547. <dl class="org-dl">
  1548. <dt> postitional </dt><dd><code>condition</code>:
  1549. </dd>
  1550. <dt> rest </dt><dd><code>body</code>
  1551. </dd>
  1552. </dl>
  1553. </dd>
  1554. <dt> docu </dt><dd><p>
  1555. Doc String for `when'
  1556. </p>
  1557. </dd>
  1558. </dl>
  1559. <p>
  1560. \hrule
  1561. </p>
  1562. </div>
  1563. </div>
  1564. <div id="outline-container-sec-" class="outline-3">
  1565. <h3 id="sec-"><code>unless</code></h3>
  1566. <div class="outline-text-3" id="text-">
  1567. <dl class="org-dl">
  1568. <dt> defined in </dt><dd><code>pre.slime:13:41</code>
  1569. </dd>
  1570. <dt> type </dt><dd><code>:macro</code>
  1571. </dd>
  1572. <dt> arguments </dt><dd>:
  1573. <dl class="org-dl">
  1574. <dt> postitional </dt><dd><code>condition</code>:
  1575. </dd>
  1576. <dt> rest </dt><dd><code>body</code>
  1577. </dd>
  1578. </dl>
  1579. </dd>
  1580. <dt> docu </dt><dd>none
  1581. </dd>
  1582. </dl>
  1583. <p>
  1584. \hrule
  1585. </p>
  1586. </div>
  1587. </div>
  1588. <div id="outline-container-sec-" class="outline-3">
  1589. <h3 id="sec-"><code>n-times</code></h3>
  1590. <div class="outline-text-3" id="text-">
  1591. <dl class="org-dl">
  1592. <dt> defined in </dt><dd><code>pre.slime:20:35</code>
  1593. </dd>
  1594. <dt> type </dt><dd><code>:macro</code>
  1595. </dd>
  1596. <dt> arguments </dt><dd>:
  1597. <dl class="org-dl">
  1598. <dt> postitional </dt><dd><code>times</code>, <code>action</code>
  1599. </dd>
  1600. </dl>
  1601. </dd>
  1602. <dt> docu </dt><dd><p>
  1603. Executes action times times.
  1604. </p>
  1605. </dd>
  1606. </dl>
  1607. <p>
  1608. \hrule
  1609. </p>
  1610. </div>
  1611. </div>
  1612. <div id="outline-container-sec-" class="outline-3">
  1613. <h3 id="sec-"><code>let</code></h3>
  1614. <div class="outline-text-3" id="text-">
  1615. <dl class="org-dl">
  1616. <dt> defined in </dt><dd><code>pre.slime:37:64</code>
  1617. </dd>
  1618. <dt> type </dt><dd><code>:macro</code>
  1619. </dd>
  1620. <dt> arguments </dt><dd>:
  1621. <dl class="org-dl">
  1622. <dt> postitional </dt><dd><code>bindings</code>:
  1623. </dd>
  1624. <dt> rest </dt><dd><code>body</code>
  1625. </dd>
  1626. </dl>
  1627. </dd>
  1628. <dt> docu </dt><dd>none
  1629. </dd>
  1630. </dl>
  1631. <p>
  1632. \hrule
  1633. </p>
  1634. </div>
  1635. </div>
  1636. <div id="outline-container-sec-" class="outline-3">
  1637. <h3 id="sec-"><code>cond</code></h3>
  1638. <div class="outline-text-3" id="text-">
  1639. <dl class="org-dl">
  1640. <dt> defined in </dt><dd><code>pre.slime:51:19</code>
  1641. </dd>
  1642. <dt> type </dt><dd><code>:macro</code>
  1643. </dd>
  1644. <dt> arguments </dt><dd>:
  1645. <dl class="org-dl">
  1646. <dt> rest </dt><dd><code>clauses</code>
  1647. </dd>
  1648. </dl>
  1649. </dd>
  1650. <dt> docu </dt><dd>none
  1651. </dd>
  1652. </dl>
  1653. <p>
  1654. \hrule
  1655. </p>
  1656. </div>
  1657. </div>
  1658. <div id="outline-container-sec-" class="outline-3">
  1659. <h3 id="sec-"><code>define-special</code></h3>
  1660. <div class="outline-text-3" id="text-">
  1661. <dl class="org-dl">
  1662. <dt> defined in </dt><dd><code>pre.slime:54:81</code>
  1663. </dd>
  1664. <dt> type </dt><dd><code>:macro</code>
  1665. </dd>
  1666. <dt> arguments </dt><dd>:
  1667. <dl class="org-dl">
  1668. <dt> postitional </dt><dd><code>name-and-args</code>:
  1669. </dd>
  1670. <dt> rest </dt><dd><code>body</code>
  1671. </dd>
  1672. </dl>
  1673. </dd>
  1674. <dt> docu </dt><dd>none
  1675. </dd>
  1676. </dl>
  1677. <p>
  1678. \hrule
  1679. </p>
  1680. </div>
  1681. </div>
  1682. <div id="outline-container-sec-" class="outline-3">
  1683. <h3 id="sec-"><code>construct-list</code></h3>
  1684. <div class="outline-text-3" id="text-">
  1685. <dl class="org-dl">
  1686. <dt> defined in </dt><dd><code>pre.slime:94:14</code>
  1687. </dd>
  1688. <dt> type </dt><dd><code>:macro</code>
  1689. </dd>
  1690. <dt> arguments </dt><dd>:
  1691. <dl class="org-dl">
  1692. <dt> rest </dt><dd><code>body</code>
  1693. </dd>
  1694. </dl>
  1695. </dd>
  1696. <dt> docu </dt><dd><p>
  1697. (construct-list
  1698. i &lt;- '(1 2 3 4 5)
  1699. yield (* i i))
  1700. </p>
  1701. <p>
  1702. (construct-list
  1703. i &lt;- '(1 2 3 4)
  1704. j &lt;- '(A B)
  1705. yield (pair i j))
  1706. </p>
  1707. <p>
  1708. (construct-list
  1709. i &lt;- '(1 2 3 4 5 6 7 8)
  1710. when (evenp i)
  1711. yield i)
  1712. </p>
  1713. </dd>
  1714. </dl>
  1715. <p>
  1716. \hrule
  1717. </p>
  1718. </div>
  1719. </div>
  1720. <div id="outline-container-sec-" class="outline-3">
  1721. <h3 id="sec-"><code>apply</code></h3>
  1722. <div class="outline-text-3" id="text-">
  1723. <dl class="org-dl">
  1724. <dt> defined in </dt><dd><code>pre.slime:99:28</code>
  1725. </dd>
  1726. <dt> type </dt><dd><code>:macro</code>
  1727. </dd>
  1728. <dt> arguments </dt><dd>:
  1729. <dl class="org-dl">
  1730. <dt> postitional </dt><dd><code>fun</code>, <code>seq</code>
  1731. </dd>
  1732. </dl>
  1733. </dd>
  1734. <dt> docu </dt><dd><p>
  1735. Applies the funciton to the sequence, as in calls the function with
  1736. ithe sequence as arguemens.
  1737. </p>
  1738. </dd>
  1739. </dl>
  1740. <p>
  1741. \hrule
  1742. </p>
  1743. </div>
  1744. </div>
  1745. <div id="outline-container-sec-" class="outline-3">
  1746. <h3 id="sec-"><code>define-package</code></h3>
  1747. <div class="outline-text-3" id="text-">
  1748. <dl class="org-dl">
  1749. <dt> defined in </dt><dd><code>pre.slime:113:24</code>
  1750. </dd>
  1751. <dt> type </dt><dd><code>:macro</code>
  1752. </dd>
  1753. <dt> arguments </dt><dd>:
  1754. <dl class="org-dl">
  1755. <dt> postitional </dt><dd><code>name</code>:
  1756. </dd>
  1757. <dt> rest </dt><dd><code>body</code>
  1758. </dd>
  1759. </dl>
  1760. </dd>
  1761. <dt> docu </dt><dd>none
  1762. </dd>
  1763. </dl>
  1764. <p>
  1765. \hrule
  1766. </p>
  1767. </div>
  1768. </div>
  1769. <div id="outline-container-sec-" class="outline-3">
  1770. <h3 id="sec-"><code>nil?</code></h3>
  1771. <div class="outline-text-3" id="text-">
  1772. <dl class="org-dl">
  1773. <dt> type </dt><dd><code>:lambda</code>
  1774. </dd>
  1775. <dt> arguments </dt><dd>:
  1776. <dl class="org-dl">
  1777. <dt> postitional </dt><dd><code>x</code>
  1778. </dd>
  1779. </dl>
  1780. </dd>
  1781. <dt> docu </dt><dd><p>
  1782. Checks if the argument is <code>nil</code>.
  1783. </p>
  1784. </dd>
  1785. </dl>
  1786. <p>
  1787. \hrule
  1788. </p>
  1789. </div>
  1790. </div>
  1791. <div id="outline-container-sec-" class="outline-3">
  1792. <h3 id="sec-"><code>number?</code></h3>
  1793. <div class="outline-text-3" id="text-">
  1794. <dl class="org-dl">
  1795. <dt> type </dt><dd><code>:lambda</code>
  1796. </dd>
  1797. <dt> arguments </dt><dd>:
  1798. <dl class="org-dl">
  1799. <dt> postitional </dt><dd><code>x</code>
  1800. </dd>
  1801. </dl>
  1802. </dd>
  1803. <dt> docu </dt><dd><p>
  1804. Checks if the argument is a number.
  1805. </p>
  1806. </dd>
  1807. </dl>
  1808. <p>
  1809. \hrule
  1810. </p>
  1811. </div>
  1812. </div>
  1813. <div id="outline-container-sec-" class="outline-3">
  1814. <h3 id="sec-"><code>symbol?</code></h3>
  1815. <div class="outline-text-3" id="text-">
  1816. <dl class="org-dl">
  1817. <dt> type </dt><dd><code>:lambda</code>
  1818. </dd>
  1819. <dt> arguments </dt><dd>:
  1820. <dl class="org-dl">
  1821. <dt> postitional </dt><dd><code>x</code>
  1822. </dd>
  1823. </dl>
  1824. </dd>
  1825. <dt> docu </dt><dd><p>
  1826. Checks if the argument is a symbol.
  1827. </p>
  1828. </dd>
  1829. </dl>
  1830. <p>
  1831. \hrule
  1832. </p>
  1833. </div>
  1834. </div>
  1835. <div id="outline-container-sec-" class="outline-3">
  1836. <h3 id="sec-"><code>keyword?</code></h3>
  1837. <div class="outline-text-3" id="text-">
  1838. <dl class="org-dl">
  1839. <dt> type </dt><dd><code>:lambda</code>
  1840. </dd>
  1841. <dt> arguments </dt><dd>:
  1842. <dl class="org-dl">
  1843. <dt> postitional </dt><dd><code>x</code>
  1844. </dd>
  1845. </dl>
  1846. </dd>
  1847. <dt> docu </dt><dd><p>
  1848. Checks if the argument is a keyword.
  1849. </p>
  1850. </dd>
  1851. </dl>
  1852. <p>
  1853. \hrule
  1854. </p>
  1855. </div>
  1856. </div>
  1857. <div id="outline-container-sec-" class="outline-3">
  1858. <h3 id="sec-"><code>pair?</code></h3>
  1859. <div class="outline-text-3" id="text-">
  1860. <dl class="org-dl">
  1861. <dt> type </dt><dd><code>:lambda</code>
  1862. </dd>
  1863. <dt> arguments </dt><dd>:
  1864. <dl class="org-dl">
  1865. <dt> postitional </dt><dd><code>x</code>
  1866. </dd>
  1867. </dl>
  1868. </dd>
  1869. <dt> docu </dt><dd><p>
  1870. Checks if the argument is a pair.
  1871. </p>
  1872. </dd>
  1873. </dl>
  1874. <p>
  1875. \hrule
  1876. </p>
  1877. </div>
  1878. </div>
  1879. <div id="outline-container-sec-" class="outline-3">
  1880. <h3 id="sec-"><code>string?</code></h3>
  1881. <div class="outline-text-3" id="text-">
  1882. <dl class="org-dl">
  1883. <dt> type </dt><dd><code>:lambda</code>
  1884. </dd>
  1885. <dt> arguments </dt><dd>:
  1886. <dl class="org-dl">
  1887. <dt> postitional </dt><dd><code>x</code>
  1888. </dd>
  1889. </dl>
  1890. </dd>
  1891. <dt> docu </dt><dd><p>
  1892. Checks if the argument is a string.
  1893. </p>
  1894. </dd>
  1895. </dl>
  1896. <p>
  1897. \hrule
  1898. </p>
  1899. </div>
  1900. </div>
  1901. <div id="outline-container-sec-" class="outline-3">
  1902. <h3 id="sec-"><code>lambda?</code></h3>
  1903. <div class="outline-text-3" id="text-">
  1904. <dl class="org-dl">
  1905. <dt> type </dt><dd><code>:lambda</code>
  1906. </dd>
  1907. <dt> arguments </dt><dd>:
  1908. <dl class="org-dl">
  1909. <dt> postitional </dt><dd><code>x</code>
  1910. </dd>
  1911. </dl>
  1912. </dd>
  1913. <dt> docu </dt><dd><p>
  1914. Checks if the argument is a function.
  1915. </p>
  1916. </dd>
  1917. </dl>
  1918. <p>
  1919. \hrule
  1920. </p>
  1921. </div>
  1922. </div>
  1923. <div id="outline-container-sec-" class="outline-3">
  1924. <h3 id="sec-"><code>macro?</code></h3>
  1925. <div class="outline-text-3" id="text-">
  1926. <dl class="org-dl">
  1927. <dt> type </dt><dd><code>:lambda</code>
  1928. </dd>
  1929. <dt> arguments </dt><dd>:
  1930. <dl class="org-dl">
  1931. <dt> postitional </dt><dd><code>x</code>
  1932. </dd>
  1933. </dl>
  1934. </dd>
  1935. <dt> docu </dt><dd><p>
  1936. Checks if the argument is a macro.
  1937. </p>
  1938. </dd>
  1939. </dl>
  1940. <p>
  1941. \hrule
  1942. </p>
  1943. </div>
  1944. </div>
  1945. <div id="outline-container-sec-" class="outline-3">
  1946. <h3 id="sec-"><code>special-lambda?</code></h3>
  1947. <div class="outline-text-3" id="text-">
  1948. <dl class="org-dl">
  1949. <dt> type </dt><dd><code>:lambda</code>
  1950. </dd>
  1951. <dt> arguments </dt><dd>:
  1952. <dl class="org-dl">
  1953. <dt> postitional </dt><dd><code>x</code>
  1954. </dd>
  1955. </dl>
  1956. </dd>
  1957. <dt> docu </dt><dd><p>
  1958. Checks if the argument is a special-lambda.
  1959. </p>
  1960. </dd>
  1961. </dl>
  1962. <p>
  1963. \hrule
  1964. </p>
  1965. </div>
  1966. </div>
  1967. <div id="outline-container-sec-" class="outline-3">
  1968. <h3 id="sec-"><code>built-in-function?</code></h3>
  1969. <div class="outline-text-3" id="text-">
  1970. <dl class="org-dl">
  1971. <dt> type </dt><dd><code>:lambda</code>
  1972. </dd>
  1973. <dt> arguments </dt><dd>:
  1974. <dl class="org-dl">
  1975. <dt> postitional </dt><dd><code>x</code>
  1976. </dd>
  1977. </dl>
  1978. </dd>
  1979. <dt> docu </dt><dd><p>
  1980. Checks if the argument is a built-in function.
  1981. </p>
  1982. </dd>
  1983. </dl>
  1984. <p>
  1985. \hrule
  1986. </p>
  1987. </div>
  1988. </div>
  1989. <div id="outline-container-sec-" class="outline-3">
  1990. <h3 id="sec-"><code>callable?</code></h3>
  1991. <div class="outline-text-3" id="text-">
  1992. <dl class="org-dl">
  1993. <dt> type </dt><dd><code>:lambda</code>
  1994. </dd>
  1995. <dt> arguments </dt><dd>:
  1996. <dl class="org-dl">
  1997. <dt> postitional </dt><dd><code>x</code>
  1998. </dd>
  1999. </dl>
  2000. </dd>
  2001. <dt> docu </dt><dd>none
  2002. </dd>
  2003. </dl>
  2004. <p>
  2005. \hrule
  2006. </p>
  2007. </div>
  2008. </div>
  2009. <div id="outline-container-sec-" class="outline-3">
  2010. <h3 id="sec-"><code>end</code></h3>
  2011. <div class="outline-text-3" id="text-">
  2012. <dl class="org-dl">
  2013. <dt> type </dt><dd><code>:lambda</code>
  2014. </dd>
  2015. <dt> arguments </dt><dd>:
  2016. <dl class="org-dl">
  2017. <dt> postitional </dt><dd><code>seq</code>
  2018. </dd>
  2019. </dl>
  2020. </dd>
  2021. <dt> docu </dt><dd><p>
  2022. Returns the last pair in the sqeuence.
  2023. </p>
  2024. </dd>
  2025. </dl>
  2026. <p>
  2027. \hrule
  2028. </p>
  2029. </div>
  2030. </div>
  2031. <div id="outline-container-sec-" class="outline-3">
  2032. <h3 id="sec-"><code>last</code></h3>
  2033. <div class="outline-text-3" id="text-">
  2034. <dl class="org-dl">
  2035. <dt> type </dt><dd><code>:lambda</code>
  2036. </dd>
  2037. <dt> arguments </dt><dd>:
  2038. <dl class="org-dl">
  2039. <dt> postitional </dt><dd><code>seq</code>
  2040. </dd>
  2041. </dl>
  2042. </dd>
  2043. <dt> docu </dt><dd><p>
  2044. Returns the (first) of the last (pair) of the given sequence.
  2045. </p>
  2046. </dd>
  2047. </dl>
  2048. <p>
  2049. \hrule
  2050. </p>
  2051. </div>
  2052. </div>
  2053. <div id="outline-container-sec-" class="outline-3">
  2054. <h3 id="sec-"><code>extend</code></h3>
  2055. <div class="outline-text-3" id="text-">
  2056. <dl class="org-dl">
  2057. <dt> type </dt><dd><code>:lambda</code>
  2058. </dd>
  2059. <dt> arguments </dt><dd>:
  2060. <dl class="org-dl">
  2061. <dt> postitional </dt><dd><code>seq</code>, <code>elem</code>
  2062. </dd>
  2063. </dl>
  2064. </dd>
  2065. <dt> docu </dt><dd><p>
  2066. Extends a list with the given element, by putting it in
  2067. the (rest) of the last element of the sequence.
  2068. </p>
  2069. </dd>
  2070. </dl>
  2071. <p>
  2072. \hrule
  2073. </p>
  2074. </div>
  2075. </div>
  2076. <div id="outline-container-sec-" class="outline-3">
  2077. <h3 id="sec-"><code>extend2</code></h3>
  2078. <div class="outline-text-3" id="text-">
  2079. <dl class="org-dl">
  2080. <dt> type </dt><dd><code>:lambda</code>
  2081. </dd>
  2082. <dt> arguments </dt><dd>:
  2083. <dl class="org-dl">
  2084. <dt> postitional </dt><dd><code>seq</code>, <code>elem</code>
  2085. </dd>
  2086. </dl>
  2087. </dd>
  2088. <dt> docu </dt><dd><p>
  2089. Extends a list with the given element, by putting it in
  2090. the (rest) of the last element of the sequence.
  2091. </p>
  2092. </dd>
  2093. </dl>
  2094. <p>
  2095. \hrule
  2096. </p>
  2097. </div>
  2098. </div>
  2099. <div id="outline-container-sec-" class="outline-3">
  2100. <h3 id="sec-"><code>append</code></h3>
  2101. <div class="outline-text-3" id="text-">
  2102. <dl class="org-dl">
  2103. <dt> type </dt><dd><code>:lambda</code>
  2104. </dd>
  2105. <dt> arguments </dt><dd>:
  2106. <dl class="org-dl">
  2107. <dt> postitional </dt><dd><code>seq</code>, <code>elem</code>
  2108. </dd>
  2109. </dl>
  2110. </dd>
  2111. <dt> docu </dt><dd><p>
  2112. Appends an element to a sequence, by extendeing the list
  2113. with (pair elem nil).
  2114. </p>
  2115. </dd>
  2116. </dl>
  2117. <p>
  2118. \hrule
  2119. </p>
  2120. </div>
  2121. </div>
  2122. <div id="outline-container-sec-" class="outline-3">
  2123. <h3 id="sec-"><code>length</code></h3>
  2124. <div class="outline-text-3" id="text-">
  2125. <dl class="org-dl">
  2126. <dt> type </dt><dd><code>:lambda</code>
  2127. </dd>
  2128. <dt> arguments </dt><dd>:
  2129. <dl class="org-dl">
  2130. <dt> postitional </dt><dd><code>seq</code>
  2131. </dd>
  2132. </dl>
  2133. </dd>
  2134. <dt> docu </dt><dd><p>
  2135. Returns the length of the given sequence.
  2136. </p>
  2137. </dd>
  2138. </dl>
  2139. <p>
  2140. \hrule
  2141. </p>
  2142. </div>
  2143. </div>
  2144. <div id="outline-container-sec-" class="outline-3">
  2145. <h3 id="sec-"><code>increment</code></h3>
  2146. <div class="outline-text-3" id="text-">
  2147. <dl class="org-dl">
  2148. <dt> type </dt><dd><code>:lambda</code>
  2149. </dd>
  2150. <dt> arguments </dt><dd>:
  2151. <dl class="org-dl">
  2152. <dt> postitional </dt><dd><code>val</code>
  2153. </dd>
  2154. </dl>
  2155. </dd>
  2156. <dt> docu </dt><dd><p>
  2157. Adds one to the argument.
  2158. </p>
  2159. </dd>
  2160. </dl>
  2161. <p>
  2162. \hrule
  2163. </p>
  2164. </div>
  2165. </div>
  2166. <div id="outline-container-sec-" class="outline-3">
  2167. <h3 id="sec-"><code>decrement</code></h3>
  2168. <div class="outline-text-3" id="text-">
  2169. <dl class="org-dl">
  2170. <dt> type </dt><dd><code>:lambda</code>
  2171. </dd>
  2172. <dt> arguments </dt><dd>:
  2173. <dl class="org-dl">
  2174. <dt> postitional </dt><dd><code>val</code>
  2175. </dd>
  2176. </dl>
  2177. </dd>
  2178. <dt> docu </dt><dd><p>
  2179. Subtracts one from the argument.
  2180. </p>
  2181. </dd>
  2182. </dl>
  2183. <p>
  2184. \hrule
  2185. </p>
  2186. </div>
  2187. </div>
  2188. <div id="outline-container-sec-" class="outline-3">
  2189. <h3 id="sec-"><code>range</code></h3>
  2190. <div class="outline-text-3" id="text-">
  2191. <dl class="org-dl">
  2192. <dt> type </dt><dd><code>:lambda</code>
  2193. </dd>
  2194. <dt> arguments </dt><dd>:
  2195. <dl class="org-dl">
  2196. <dt> keyword </dt><dd><code>from</code> <code>(0)</code>, <code>to</code>
  2197. </dd>
  2198. </dl>
  2199. </dd>
  2200. <dt> docu </dt><dd><p>
  2201. Returns a sequence of numbers starting with the number defined by the
  2202. key <code>from</code> and ends with the number defined in <code>to</code>.
  2203. </p>
  2204. </dd>
  2205. </dl>
  2206. <p>
  2207. \hrule
  2208. </p>
  2209. </div>
  2210. </div>
  2211. <div id="outline-container-sec-" class="outline-3">
  2212. <h3 id="sec-"><code>range-while</code></h3>
  2213. <div class="outline-text-3" id="text-">
  2214. <dl class="org-dl">
  2215. <dt> type </dt><dd><code>:lambda</code>
  2216. </dd>
  2217. <dt> arguments </dt><dd>:
  2218. <dl class="org-dl">
  2219. <dt> keyword </dt><dd><code>from</code> <code>(0)</code>, <code>to</code>
  2220. </dd>
  2221. </dl>
  2222. </dd>
  2223. <dt> docu </dt><dd><p>
  2224. Returns a sequence of numbers starting with the number defined
  2225. by the key 'from' and ends with the number defined in 'to'.
  2226. </p>
  2227. </dd>
  2228. </dl>
  2229. <p>
  2230. \hrule
  2231. </p>
  2232. </div>
  2233. </div>
  2234. <div id="outline-container-sec-" class="outline-3">
  2235. <h3 id="sec-"><code>map</code></h3>
  2236. <div class="outline-text-3" id="text-">
  2237. <dl class="org-dl">
  2238. <dt> type </dt><dd><code>:lambda</code>
  2239. </dd>
  2240. <dt> arguments </dt><dd>:
  2241. <dl class="org-dl">
  2242. <dt> postitional </dt><dd><code>fun</code>, <code>seq</code>
  2243. </dd>
  2244. </dl>
  2245. </dd>
  2246. <dt> docu </dt><dd><p>
  2247. Takes a function and a sequence as arguments and returns a new
  2248. sequence which contains the results of using the first sequences
  2249. elemens as argument to that function.
  2250. </p>
  2251. </dd>
  2252. </dl>
  2253. <p>
  2254. \hrule
  2255. </p>
  2256. </div>
  2257. </div>
  2258. <div id="outline-container-sec-" class="outline-3">
  2259. <h3 id="sec-"><code>reduce</code></h3>
  2260. <div class="outline-text-3" id="text-">
  2261. <dl class="org-dl">
  2262. <dt> type </dt><dd><code>:lambda</code>
  2263. </dd>
  2264. <dt> arguments </dt><dd>:
  2265. <dl class="org-dl">
  2266. <dt> postitional </dt><dd><code>fun</code>, <code>seq</code>
  2267. </dd>
  2268. </dl>
  2269. </dd>
  2270. <dt> docu </dt><dd><p>
  2271. Takes a function and a sequence as arguments and applies the
  2272. function to the argument sequence. This only works correctly if the
  2273. given function accepts a variable amount of parameters. If your
  2274. funciton is limited to two arguments, use <a href="#sec-"><code>reduce-binary</code></a>
  2275. instead.
  2276. </p>
  2277. </dd>
  2278. </dl>
  2279. <p>
  2280. \hrule
  2281. </p>
  2282. </div>
  2283. </div>
  2284. <div id="outline-container-sec-" class="outline-3">
  2285. <h3 id="sec-"><code>reduce-binary</code></h3>
  2286. <div class="outline-text-3" id="text-">
  2287. <dl class="org-dl">
  2288. <dt> type </dt><dd><code>:lambda</code>
  2289. </dd>
  2290. <dt> arguments </dt><dd>:
  2291. <dl class="org-dl">
  2292. <dt> postitional </dt><dd><code>fun</code>, <code>seq</code>
  2293. </dd>
  2294. </dl>
  2295. </dd>
  2296. <dt> docu </dt><dd><p>
  2297. Takes a function and a sequence as arguments and applies the
  2298. function to the argument sequence. reduce-binary applies the
  2299. arguments `pair-wise' which means it works with binary functions
  2300. as compared to `reduce'.
  2301. </p>
  2302. </dd>
  2303. </dl>
  2304. <p>
  2305. \hrule
  2306. </p>
  2307. </div>
  2308. </div>
  2309. <div id="outline-container-sec-" class="outline-3">
  2310. <h3 id="sec-"><code>filter</code></h3>
  2311. <div class="outline-text-3" id="text-">
  2312. <dl class="org-dl">
  2313. <dt> type </dt><dd><code>:lambda</code>
  2314. </dd>
  2315. <dt> arguments </dt><dd>:
  2316. <dl class="org-dl">
  2317. <dt> postitional </dt><dd><code>fun</code>, <code>seq</code>
  2318. </dd>
  2319. </dl>
  2320. </dd>
  2321. <dt> docu </dt><dd><p>
  2322. Takes a function and a sequence as arguments and applies the
  2323. function to every value in the sequence. If the result of that
  2324. funciton application returns a truthy value, the original value is
  2325. added to a list, which in the end is returned.
  2326. </p>
  2327. </dd>
  2328. </dl>
  2329. <p>
  2330. \hrule
  2331. </p>
  2332. </div>
  2333. </div>
  2334. <div id="outline-container-sec-" class="outline-3">
  2335. <h3 id="sec-"><code>zip</code></h3>
  2336. <div class="outline-text-3" id="text-">
  2337. <dl class="org-dl">
  2338. <dt> type </dt><dd><code>:lambda</code>
  2339. </dd>
  2340. <dt> arguments </dt><dd>:
  2341. <dl class="org-dl">
  2342. <dt> postitional </dt><dd><code>l1</code>, <code>l2</code>
  2343. </dd>
  2344. </dl>
  2345. </dd>
  2346. <dt> docu </dt><dd>none
  2347. </dd>
  2348. </dl>
  2349. <p>
  2350. \hrule
  2351. </p>
  2352. </div>
  2353. </div>
  2354. <div id="outline-container-sec-" class="outline-3">
  2355. <h3 id="sec-"><code>unzip</code></h3>
  2356. <div class="outline-text-3" id="text-">
  2357. <dl class="org-dl">
  2358. <dt> type </dt><dd><code>:lambda</code>
  2359. </dd>
  2360. <dt> arguments </dt><dd>:
  2361. <dl class="org-dl">
  2362. <dt> postitional </dt><dd><code>lists</code>
  2363. </dd>
  2364. </dl>
  2365. </dd>
  2366. <dt> docu </dt><dd>none
  2367. </dd>
  2368. </dl>
  2369. <p>
  2370. \hrule
  2371. </p>
  2372. </div>
  2373. </div>
  2374. <div id="outline-container-sec-" class="outline-3">
  2375. <h3 id="sec-"><code>enumerate</code></h3>
  2376. <div class="outline-text-3" id="text-">
  2377. <dl class="org-dl">
  2378. <dt> type </dt><dd><code>:lambda</code>
  2379. </dd>
  2380. <dt> arguments </dt><dd>:
  2381. <dl class="org-dl">
  2382. <dt> postitional </dt><dd><code>seq</code>
  2383. </dd>
  2384. </dl>
  2385. </dd>
  2386. <dt> docu </dt><dd>none
  2387. </dd>
  2388. </dl>
  2389. <p>
  2390. \hrule
  2391. </p>
  2392. </div>
  2393. </div>
  2394. <div id="outline-container-sec-" class="outline-3">
  2395. <h3 id="sec-"><code>printf</code></h3>
  2396. <div class="outline-text-3" id="text-">
  2397. <dl class="org-dl">
  2398. <dt> type </dt><dd><code>:lambda</code>
  2399. </dd>
  2400. <dt> arguments </dt><dd>:
  2401. <dl class="org-dl">
  2402. <dt> keyword </dt><dd><code>sep</code> <code>(" ")</code>, <code>end</code> <code>("\n")</code>:
  2403. </dd>
  2404. <dt> rest </dt><dd><code>args</code>
  2405. </dd>
  2406. </dl>
  2407. </dd>
  2408. <dt> docu </dt><dd><p>
  2409. A wrapper for the built-in <a href="#sec-"><code>print</code></a> that accepts a variable
  2410. number of arguments and also provides keywords for specifying the
  2411. printed separators (<code>sep</code>) between the arguments and what should be
  2412. printed after the las argument (<code>end</code>).
  2413. </p>
  2414. </dd>
  2415. </dl>
  2416. <p>
  2417. \hrule
  2418. </p>
  2419. </div>
  2420. </div>
  2421. <div id="outline-container-sec-" class="outline-3">
  2422. <h3 id="sec-"><code>define-class</code></h3>
  2423. <div class="outline-text-3" id="text-">
  2424. <dl class="org-dl">
  2425. <dt> defined in </dt><dd><code>oo.slime:22:22</code>
  2426. </dd>
  2427. <dt> type </dt><dd><code>:macro</code>
  2428. </dd>
  2429. <dt> arguments </dt><dd>:
  2430. <dl class="org-dl">
  2431. <dt> postitional </dt><dd><code>name-and-members</code>:
  2432. </dd>
  2433. <dt> rest </dt><dd><code>body</code>
  2434. </dd>
  2435. </dl>
  2436. </dd>
  2437. <dt> docu </dt><dd><p>
  2438. Macro for creating simple classes.
  2439. </p>
  2440. </dd>
  2441. </dl>
  2442. <p>
  2443. \hrule
  2444. </p>
  2445. </div>
  2446. </div>
  2447. <div id="outline-container-sec-" class="outline-3">
  2448. <h3 id="sec-"><code>-&gt;</code></h3>
  2449. <div class="outline-text-3" id="text-">
  2450. <dl class="org-dl">
  2451. <dt> defined in </dt><dd><code>oo.slime:25:24</code>
  2452. </dd>
  2453. <dt> type </dt><dd><code>:macro</code>
  2454. </dd>
  2455. <dt> arguments </dt><dd>:
  2456. <dl class="org-dl">
  2457. <dt> postitional </dt><dd><code>obj</code>, <code>meth</code>:
  2458. </dd>
  2459. <dt> rest </dt><dd><code>args</code>
  2460. </dd>
  2461. </dl>
  2462. </dd>
  2463. <dt> docu </dt><dd>none
  2464. </dd>
  2465. </dl>
  2466. <p>
  2467. \hrule
  2468. </p>
  2469. </div>
  2470. </div>
  2471. <div id="outline-container-sec-" class="outline-3">
  2472. <h3 id="sec-"><code>math-&gt;</code></h3>
  2473. <div class="outline-text-3" id="text-">
  2474. <dl class="org-dl">
  2475. <dt> type </dt><dd><code>:package</code>
  2476. </dd>
  2477. <dt> arguments </dt><dd>:
  2478. <dl class="org-dl">
  2479. <dt> rest </dt><dd><code>args</code>
  2480. </dd>
  2481. </dl>
  2482. </dd>
  2483. <dt> docu </dt><dd>none
  2484. </dd>
  2485. </dl>
  2486. <p>
  2487. \hrule
  2488. </p>
  2489. </div>
  2490. </div>
  2491. <div id="outline-container-sec-" class="outline-3">
  2492. <h3 id="sec-"><code>math-&gt; pi</code></h3>
  2493. <div class="outline-text-3" id="text-">
  2494. <dl class="org-dl">
  2495. <dt> defined in </dt><dd><code>math.slime:5:4</code>
  2496. </dd>
  2497. <dt> type </dt><dd><code>:number</code>
  2498. </dd>
  2499. <dt> value </dt><dd><code>3.141593</code>
  2500. </dd>
  2501. <dt> docu </dt><dd><p>
  2502. Tha famous circle constant.
  2503. </p>
  2504. </dd>
  2505. </dl>
  2506. <p>
  2507. \hrule
  2508. </p>
  2509. </div>
  2510. </div>
  2511. <div id="outline-container-sec-" class="outline-3">
  2512. <h3 id="sec-"><code>math-&gt; abs</code></h3>
  2513. <div class="outline-text-3" id="text-">
  2514. <dl class="org-dl">
  2515. <dt> defined in </dt><dd><code>math.slime:9:4</code>
  2516. </dd>
  2517. <dt> type </dt><dd><code>:lambda</code>
  2518. </dd>
  2519. <dt> arguments </dt><dd>:
  2520. <dl class="org-dl">
  2521. <dt> postitional </dt><dd><code>x</code>
  2522. </dd>
  2523. </dl>
  2524. </dd>
  2525. <dt> docu </dt><dd><p>
  2526. Accepts one argument and returns the absoulte value of it
  2527. </p>
  2528. </dd>
  2529. </dl>
  2530. <p>
  2531. \hrule
  2532. </p>
  2533. </div>
  2534. </div>
  2535. <div id="outline-container-sec-" class="outline-3">
  2536. <h3 id="sec-"><code>math-&gt; sqrt</code></h3>
  2537. <div class="outline-text-3" id="text-">
  2538. <dl class="org-dl">
  2539. <dt> defined in </dt><dd><code>math.slime:13:4</code>
  2540. </dd>
  2541. <dt> type </dt><dd><code>:lambda</code>
  2542. </dd>
  2543. <dt> arguments </dt><dd>:
  2544. <dl class="org-dl">
  2545. <dt> postitional </dt><dd><code>x</code>
  2546. </dd>
  2547. </dl>
  2548. </dd>
  2549. <dt> docu </dt><dd><p>
  2550. Accepts one argument and returns the square root of it
  2551. </p>
  2552. </dd>
  2553. </dl>
  2554. <p>
  2555. \hrule
  2556. </p>
  2557. </div>
  2558. </div>
  2559. <div id="outline-container-sec-" class="outline-3">
  2560. <h3 id="sec-"><code>math-&gt; make-vector3</code></h3>
  2561. <div class="outline-text-3" id="text-">
  2562. <dl class="org-dl">
  2563. <dt> defined in </dt><dd><code>pre.slime:37:63</code>
  2564. </dd>
  2565. <dt> type </dt><dd><code>:constructor</code>
  2566. </dd>
  2567. <dt> arguments </dt><dd>:
  2568. <dl class="org-dl">
  2569. <dt> postitional </dt><dd><code>x</code>, <code>y</code>, <code>z</code>
  2570. </dd>
  2571. </dl>
  2572. </dd>
  2573. <dt> docu </dt><dd><p>
  2574. This is the handle to an object of the class vector3
  2575. </p>
  2576. </dd>
  2577. </dl>
  2578. <p>
  2579. \hrule
  2580. </p>
  2581. </div>
  2582. </div>
  2583. <div id="outline-container-sec-" class="outline-3">
  2584. <h3 id="sec-"><code>math-&gt; make-vector3 define-class</code></h3>
  2585. <div class="outline-text-3" id="text-">
  2586. <dl class="org-dl">
  2587. <dt> defined in </dt><dd><code>oo.slime:22:22</code>
  2588. </dd>
  2589. <dt> type </dt><dd><code>:macro</code>
  2590. </dd>
  2591. <dt> arguments </dt><dd>:
  2592. <dl class="org-dl">
  2593. <dt> postitional </dt><dd><code>name-and-members</code>:
  2594. </dd>
  2595. <dt> rest </dt><dd><code>body</code>
  2596. </dd>
  2597. </dl>
  2598. </dd>
  2599. <dt> docu </dt><dd><p>
  2600. Macro for creating simple classes.
  2601. </p>
  2602. </dd>
  2603. </dl>
  2604. <p>
  2605. \hrule
  2606. </p>
  2607. </div>
  2608. </div>
  2609. <div id="outline-container-sec-" class="outline-3">
  2610. <h3 id="sec-"><code>math-&gt; make-vector3 -&gt;</code></h3>
  2611. <div class="outline-text-3" id="text-">
  2612. <dl class="org-dl">
  2613. <dt> defined in </dt><dd><code>oo.slime:25:24</code>
  2614. </dd>
  2615. <dt> type </dt><dd><code>:macro</code>
  2616. </dd>
  2617. <dt> arguments </dt><dd>:
  2618. <dl class="org-dl">
  2619. <dt> postitional </dt><dd><code>obj</code>, <code>meth</code>:
  2620. </dd>
  2621. <dt> rest </dt><dd><code>args</code>
  2622. </dd>
  2623. </dl>
  2624. </dd>
  2625. <dt> docu </dt><dd>none
  2626. </dd>
  2627. </dl>
  2628. </div>
  2629. </div>
  2630. </div>
  2631. </div></div></div>
  2632. <footer id="postamble" class="">
  2633. <div><p class="author">Author: Felix Brendel</p>
  2634. <p class="date">Created: 2019-06-11 Di 02:01</p>
  2635. <p class="creator"><a href="http://www.gnu.org/software/emacs/">Emacs</a> 26.2 (<a href="http://orgmode.org">Org-mode</a> 9.2)</p>
  2636. </div>
  2637. </footer>
  2638. </body>
  2639. </html>