<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div>Bo,<br><br></div>The quote form wraps fully-evaluated data, so let's peel away the quote around the result and see what you have:<br>
<br></div>(this (is silly))<br><br></div>In quoted data, parentheses mean a list. So you have a list of two elements:<br><br></div>this<br></div>(is silly)<br><br></div>The first element is a symbol. The second is a list of two further elements:<br>
<br></div>is<br>silly<br><br></div>Those are also symbols. If you want to explore this stuff yourself, you can always use the built-in predicates in Racket:<br><br></div>(define x (list 'this '(is silly)))<br></div>
<br>(string? x)<br></div>(symbol? x)<br>(list? x)<br><br></div><div>(define y (first x))<br>(define z (second x))<br><br></div><div>(string? y)<br></div><div>(symbol? y)<br></div><div>(list? y)<br><br></div><div>... and so on. I don't know if this answers all your questions, but hopefully being able to explore this stuff yourself will get you a few steps further.<br>
</div></div></div></div><div class="gmail_extra"><br clear="all"><div>Carl Eastlund</div>
<br><br><div class="gmail_quote">On Sun, Oct 27, 2013 at 4:23 PM, Bo Gus <span dir="ltr"><<a href="mailto:forumangus@gmail.com" target="_blank">forumangus@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>If I evaluate this:</div><div><br></div><div>(list 'this '(is silly))</div><div><br></div><div>I get this:</div><div><br></div><div>'(this (is silly))</div><div><br></div><div>I just want to check I understand what is happening here.</div>
<div><br></div><div><br></div><div>list always returns a proper list hence I see no dotted notation here.</div><div><br></div><div>The return value is quoted which means it is a symbol? But there are spaces so can it be a symbol? And in addition, list returns a proper list so it is a list? A symbolic list?</div>
<div><br></div><div>Or does the quote in returned just mean it is string data in the list?</div><div><br></div><div>The nested parentheses around is silly is indicating that this is a inner list - a list within a list? What is in the inner list? Two strings? One string made up of the characters i, s, space, s, i, l, l, y ?</div>
<div><br></div><div>I suppose the thing that confuses me the most is the idea of a symbol. There are no quotes around the textual information in the returned data so do I assume the text is not string data? If so are they symbols?</div>
<div><br></div><div>Please help clarify.</div></div>
<br>____________________<br>
Racket Users list:<br>
<a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
<br></blockquote></div><br></div>