
<HTML><HEAD><TITLE>CosmicOS message</TITLE></HEAD>
<BODY BGCOLOR='#ffffff'>
<HR>
<TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TT><TT><A NAME='31'><FONT COLOR=red>#&nbsp;OBJECT introduce simple mutable structures</FONT></A></TT><BR>
<TT>[<A HREF='sound.cgi?s=211013210001010302321100321110113023210011013222100010113221010101322110032100101302321101132033221110113333322110032100010030232111110322100010113322100011132211101133221000100332211003210010132033332233'>hear</A>] </TT><TT>(define mutable-struct /</TT><BR>
<TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TT><TT>&nbsp;&nbsp;? lst /</TT><BR>
<TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TT><TT>&nbsp;&nbsp;let <font style='background-color: #cdffff'>(</font><font style='background-color: #9bffff'>(data </font><font style='background-color: #69ffff'>(map </font><font style='background-color: #37ffff'>(? x / make-cell 0)</font><font style='background-color: #69ffff'> </font><font style='background-color: #69cdff'>(lst)</font><font style='background-color: #69ffff'>)</font><font style='background-color: #9bffff'>)</font><font style='background-color: #cdffff'>)</font></TT><BR>
<TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TT><TT>&nbsp;&nbsp;&nbsp;<font style='background-color: #ffcdff'>(? key /</font></TT><BR>
<TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TT><TT>&nbsp;&nbsp;&nbsp;&nbsp;<font style='background-color: #ffcdff'>list-ref </font><font style='background-color: #ff9bff'>(data)</font><font style='background-color: #ffcdff'> </font><font style='background-color: #ffcdcd'>(list-find </font><font style='background-color: #ffcd9b'>(lst)</font><font style='background-color: #ffcdcd'> </font><font style='background-color: #cdcdcd'>(key)</font><font style='background-color: #ffcdcd'> </font><font style='background-color: #ff9bcd'>(? x 0)</font><font style='background-color: #ffcdcd'>)</font><font style='background-color: #ffcdff'>)</font>);</TT><BR>
<BR>
<TT>[<A HREF='sound.cgi?s=2110132100011003023210001010302321000032100011013210001110321000111132233'>hear</A>] </TT><TT>(define test-struct1 /</TT><BR>
<TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TT><TT>&nbsp;&nbsp;mutable-struct /</TT><BR>
<TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TT><TT>&nbsp;&nbsp;vector item1 item2 item3);</TT><BR>
<BR>
<TT>[<A HREF='sound.cgi?s=211100322100011003210001101332111132233'>hear</A>] </TT><TT>(set! <font style='background-color: #cdffff'>(test-struct1 item1)</font> 15);</TT><BR>
<BR>
<TT>[<A HREF='sound.cgi?s=2103221110130232100011003210001101332111132233'>hear</A>] </TT><TT>(= <font style='background-color: #cdffff'>(get! / test-struct1 item1)</font> 15);</TT><BR>
<BR>

</BODY>
</HTML>
