<HEAD><TITLE>discuss@charon: [1015] in "Coldmud discussion meeting"</TITLE>
<H1>[1015] in Coldmud discussion meeting</H1></HEAD>
<A HREF="/"><IMG SRC="/i-d.gif" ALT="root"></A>
<A HREF="?1015"><IMG SRC="/i-back.gif" ALT="meeting"></A>
<A HREF="/help.html"><IMG SRC="/i-help.gif" ALT="help"></A>
<A HREF="1"><IMG SRC="/i-first.gif" ALT="first"></A>
<A HREF="1014"><IMG SRC="/i-fref.gif" ALT="first in chain"></A>
<A HREF="1014"><IMG SRC="/i-pref.gif" ALT="previous in chain"></A>
<A HREF="1014"><IMG SRC="/i-prev.gif" ALT="previous"></A>
<A HREF="1016"><IMG SRC="/i-next.gif" ALT="next"></A>
<IMG SRC="/n-nref.gif" ALT="">
<IMG SRC="/n-lref.gif" ALT="">
<A HREF="1641"><IMG SRC="/i-last.gif" ALT="last"></A>
<HR><H2>Re: [COLD] maplist stuff</H2>
<H3>daemon@ATHENA.MIT.EDU (Mon Jun 10 11:50:10 1996
)</H3>
<PRE>
Date: Mon, 10 Jun 1996 09:35:43 -0600 (MDT)
From: Brandon Gillespie &lt;brandon@tombstone.sunrem.com&gt;
To: coldstuff@cold.org
In-Reply-To: &lt;199606092045.WAA25166@regoc.srce.hr&gt;

&gt; After day's thought, I think that introducing new keywords may be bad
&gt; idea in any case. How about doing it the way Mathematica does (okay,
&gt; with slight changes in the operator names so that decompilation doesn't
&gt; break):
&gt; 
&gt; maplist:	[1,2,3] \@ x -&gt; x+1;
&gt; mapindex:       l \# x -&gt; l[len-x];
&gt; findindex:	l \? x -&gt; x&gt;0;
&gt; filter:         l \* x -&gt; x&gt;0;
&gt; 
&gt; And maybe:
&gt; 
&gt; maptohash:      l \&amp; x -&gt; [x,0];  &lt;-- this one should return a
&gt; 				      hashtable
&gt; Index equivalent to this:   l \+ x -&gt; [p[x],q[x]];
&gt; 
&gt; The problem is whether we can use backslash (it's free at the moment,
&gt; isn't it?)
&gt; 
&gt; Cryptic, but with helps, one can get used to this. :)

I would much rather stay with keywords, otherwise we turn into PERL.

-Brandon
</PRE>
