<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=282727&amp;view=findpost&amp;p=2376263</guid>
        <pubDate>Wed, 23 Sep 2009 09:13:20 +0000</pubDate>
        <title>Вопрос по Lisp</title>
        <link>https://forum.sources.ru/index.php?showtopic=282727&amp;view=findpost&amp;p=2376263</link>
        <description><![CDATA[Pourtous: Омг.<br>
Это обычный Common Lisp.<br>
<a class='tag-url' href='http://free-referat.ru/referats/komputeri_i_programi/id3382/download/' target='_blank'>Вот тут</a> методичка к мюлиспу. На первый взгляд сильно отличатся не должно.<br>
Запустить в командной строке <br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">MuLisp87.com Common.lsp</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script><br>
Он покажет приглашение к вводу команды.<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">$</div></ol></div></div></div></div><br>
Потом загрузить файл с определением функции, у меня он назывался list.lisp<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&nbsp;(load &quot;list.lisp&quot;)</div></ol></div></div></div></div><br>
Cнова дождаться приглашения к вводу и вызвать функцию <br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">(list_count 3 &#39;(1 3 5 3 4) 0)</div></ol></div></div></div></div><br>
<br>
Единственное что, возможно он будет ругаться на first и rest, тогда замените их на car и cdr соответственно(разница только в читабельности).]]></description>
        <author>Pourtous</author>
        <category>Lisp</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=282727&amp;view=findpost&amp;p=2376005</guid>
        <pubDate>Wed, 23 Sep 2009 04:25:28 +0000</pubDate>
        <title>Вопрос по Lisp</title>
        <link>https://forum.sources.ru/index.php?showtopic=282727&amp;view=findpost&amp;p=2376005</link>
        <description><![CDATA[Odin-online: ммм... я вот не знаю сколько версий лиспа есть, у нас приложение mulisp.com называется и вся папка с файлами на 1мб) там ещё не видел такого запуска)]]></description>
        <author>Odin-online</author>
        <category>Lisp</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=282727&amp;view=findpost&amp;p=2375960</guid>
        <pubDate>Tue, 22 Sep 2009 21:34:19 +0000</pubDate>
        <title>Вопрос по Lisp</title>
        <link>https://forum.sources.ru/index.php?showtopic=282727&amp;view=findpost&amp;p=2375960</link>
        <description><![CDATA[Pourtous: <div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">detrit% clisp</div><div class="code_line">[1]&#62; (load &quot;list.lisp&quot;)</div><div class="code_line">;; Loading file list.lisp ...</div><div class="code_line">;; Loaded file list.lisp</div><div class="code_line">T</div><div class="code_line">[2]&#62; (list_count 3 &#39;(1 3 5 3 4) 0)</div><div class="code_line">(1 3)</div><div class="code_line">[3]&#62;</div></ol></div></div></div></div><br>
<br>
http://www.cs.sfu.ca/CC/310/pwfong/Lisp/1/tutorial1.html]]></description>
        <author>Pourtous</author>
        <category>Lisp</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=282727&amp;view=findpost&amp;p=2375957</guid>
        <pubDate>Tue, 22 Sep 2009 21:15:46 +0000</pubDate>
        <title>Вопрос по Lisp</title>
        <link>https://forum.sources.ru/index.php?showtopic=282727&amp;view=findpost&amp;p=2375957</link>
        <description><![CDATA[Odin-online: огромное спасибо)<br><br>последний вопрос, как правильно теперь это запустить?<br><br>(defun (a v a c d) a)<br><br>?]]></description>
        <author>Odin-online</author>
        <category>Lisp</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=282727&amp;view=findpost&amp;p=2375921</guid>
        <pubDate>Tue, 22 Sep 2009 20:03:39 +0000</pubDate>
        <title>Вопрос по Lisp</title>
        <link>https://forum.sources.ru/index.php?showtopic=282727&amp;view=findpost&amp;p=2375921</link>
        <description><![CDATA[Pourtous: <div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; 1 (defun list_count (N L CurPos)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; 2 &nbsp; &nbsp; &nbsp;(if (null L)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; 3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nil</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; 4 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (if (= N (first L)) </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; 5 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (cons CurPos (list_count N &nbsp;(rest L) (+ CurPos 1)))</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; 6 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(list_count N (rest L) (+ CurPos 1))</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; 7 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; 8 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; 9 &nbsp; &nbsp; &nbsp; )</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;10 &nbsp;)</div></ol></div></div></div></div>]]></description>
        <author>Pourtous</author>
        <category>Lisp</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=282727&amp;view=findpost&amp;p=2375374</guid>
        <pubDate>Tue, 22 Sep 2009 13:03:14 +0000</pubDate>
        <title>Вопрос по Lisp</title>
        <link>https://forum.sources.ru/index.php?showtopic=282727&amp;view=findpost&amp;p=2375374</link>
        <description><![CDATA[Odin-online: Пытались мы реализовать общими усилиями задание по Лиспу, навыков нет особо(<br><br>Задание: Дан список элементов. Найти все позиции элемента в списке, допустим элемент &quot;а&quot;, список (а b a c a).<br><br>Наш пример, не работающий))):<br><br>(defun start(lst el)<br>  (find lst el 0 nil)<br>)<br>(defun find(lst el index reslst)<br>  (cond<br>     ((null lst) ((reverse reslst)))<br>     ((eql(nth index lst) el) (find lst el (add index 1) (cons index reslst)))<br>     (T(find lst el (add index 1) reslst))<br>  )<br>)<br><br><br>Помогите пожалуйсто довести до ума, чтото трудно с этим лиспом... Заранее спасибо.]]></description>
        <author>Odin-online</author>
        <category>Lisp</category>
      </item>
	
      </channel>
      </rss>
	