<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Looking to complete my self-obsessive list of cdr, car functions in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-complete-my-self-obsessive-list-of-cdr-car-functions/m-p/6685690#M126529</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A style hint: while understanding the CxxxR functions is useful, they should be hidden inside higher-level tools or your programs will be pretty hard to read.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example picking out 6 from that list would be more readable as&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(z (second '(&lt;SPAN&gt;(1 2 3)(4 5 6)(7 8 9))), assuming your application is using x,y,z coordinates.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Defining Z and SECOND should be easy for you at this stage.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Nov 2016 09:20:12 GMT</pubDate>
    <dc:creator>martti.halminen</dc:creator>
    <dc:date>2016-11-14T09:20:12Z</dc:date>
    <item>
      <title>Looking to complete my self-obsessive list of cdr, car functions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-complete-my-self-obsessive-list-of-cdr-car-functions/m-p/6685209#M126526</link>
      <description>&lt;P&gt;I am trying with all my might to gain understanding of car, cdr, etc. for some specific projects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've made a list of functions and have been typing them in the ACAD command line to see what works and what doesn't. &amp;nbsp;Yes, OK, I'm a monkey trying to type&amp;nbsp;Shakespeare....&lt;img id="smileylol" class="emoticon emoticon-smileylol" src="https://forums.autodesk.com/i/smilies/16x16_smiley-lol.png" alt="Smiley LOL" title="Smiley LOL" /&gt;&lt;img id="smileylol" class="emoticon emoticon-smileylol" src="https://forums.autodesk.com/i/smilies/16x16_smiley-lol.png" alt="Smiley LOL" title="Smiley LOL" /&gt;&lt;img id="smileylol" class="emoticon emoticon-smileylol" src="https://forums.autodesk.com/i/smilies/16x16_smiley-lol.png" alt="Smiley LOL" title="Smiley LOL" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My list is (1 2 3)(4 5 6)(7 8 9).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't find a way to extract 6, 8 or 9. &amp;nbsp;Also, can't get (8 9)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've attached a text file that shows my accumulated list. &amp;nbsp;Could someone fill in these blanks for me? &amp;nbsp;Thanks very much in advance!!&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2016 22:16:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-complete-my-self-obsessive-list-of-cdr-car-functions/m-p/6685209#M126526</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-13T22:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Looking to complete my self-obsessive list of cdr, car functions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-complete-my-self-obsessive-list-of-cdr-car-functions/m-p/6685238#M126527</link>
      <description>&lt;PRE&gt;Command: (cddadr '((1 2 3) (4 5 6) (7 8 9)))&lt;BR /&gt;(6)&lt;BR /&gt;Command: (cdaddr '((1 2 3) (4 5 6) (7 8 9)))&lt;BR /&gt;(8 9)&lt;/PRE&gt;
&lt;P&gt;car cdr can only be nested upto 4 levels&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;, so to extract 6 and 8 and 9 as car's and not lists ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Command: (car (cddadr '((1 2 3) (4 5 6) (7 8 9))))&lt;BR /&gt;6&lt;BR /&gt;Command: (car (cdaddr '((1 2 3) (4 5 6) (7 8 9))))&lt;BR /&gt;8&lt;BR /&gt;Command: (cadr (cdaddr '((1 2 3) (4 5 6) (7 8 9))))&lt;BR /&gt;9&lt;/PRE&gt;</description>
      <pubDate>Sun, 13 Nov 2016 23:03:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-complete-my-self-obsessive-list-of-cdr-car-functions/m-p/6685238#M126527</guid>
      <dc:creator>Ranjit_Singh</dc:creator>
      <dc:date>2016-11-13T23:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Looking to complete my self-obsessive list of cdr, car functions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-complete-my-self-obsessive-list-of-cdr-car-functions/m-p/6685302#M126528</link>
      <description>&lt;P&gt;Great! &amp;nbsp;Thanks! &amp;nbsp;I learned a lot from your answer&amp;nbsp;&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 00:54:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-complete-my-self-obsessive-list-of-cdr-car-functions/m-p/6685302#M126528</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-14T00:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Looking to complete my self-obsessive list of cdr, car functions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-complete-my-self-obsessive-list-of-cdr-car-functions/m-p/6685690#M126529</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A style hint: while understanding the CxxxR functions is useful, they should be hidden inside higher-level tools or your programs will be pretty hard to read.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example picking out 6 from that list would be more readable as&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(z (second '(&lt;SPAN&gt;(1 2 3)(4 5 6)(7 8 9))), assuming your application is using x,y,z coordinates.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Defining Z and SECOND should be easy for you at this stage.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 09:20:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-complete-my-self-obsessive-list-of-cdr-car-functions/m-p/6685690#M126529</guid>
      <dc:creator>martti.halminen</dc:creator>
      <dc:date>2016-11-14T09:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Looking to complete my self-obsessive list of cdr, car functions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-complete-my-self-obsessive-list-of-cdr-car-functions/m-p/6686102#M126530</link>
      <description>&lt;P&gt;Hahaha, it can be done THAT easily? &lt;img id="smileylol" class="emoticon emoticon-smileylol" src="https://forums.autodesk.com/i/smilies/16x16_smiley-lol.png" alt="Smiley LOL" title="Smiley LOL" /&gt; Thanks for the extra tip, the example code I'm learning from is definitely NOT that straightforward&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 13:23:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-complete-my-self-obsessive-list-of-cdr-car-functions/m-p/6686102#M126530</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-14T13:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Looking to complete my self-obsessive list of cdr, car functions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-complete-my-self-obsessive-list-of-cdr-car-functions/m-p/6686546#M126531</link>
      <description>&lt;P&gt;I downloaded a .txt file sometime ago specifically for car / cadr &amp;nbsp; combinations [ cant remember where though ]&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;These concatenations are the equivalent of nested calls to &lt;SPAN class="code"&gt;car&lt;/SPAN&gt; and &lt;SPAN class="code"&gt;cdr&lt;/SPAN&gt;. Each a represents a call to &lt;SPAN class="code"&gt;car&lt;/SPAN&gt;, and each d represents a call to &lt;SPAN class="code"&gt;cdr&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Read through it, either&amp;nbsp;you will have a better understanding on how the nesting works or give you a massive headache &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;pBe&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 16:41:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-complete-my-self-obsessive-list-of-cdr-car-functions/m-p/6686546#M126531</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2016-11-14T16:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Looking to complete my self-obsessive list of cdr, car functions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-complete-my-self-obsessive-list-of-cdr-car-functions/m-p/6686568#M126532</link>
      <description>&lt;P&gt;Thanks for the list!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 16:48:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-complete-my-self-obsessive-list-of-cdr-car-functions/m-p/6686568#M126532</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-14T16:48:32Z</dc:date>
    </item>
  </channel>
</rss>

