[plt-scheme] append-map examples

From: Skeptic . (skeptic2000 at hotmail.com)
Date: Fri Apr 9 23:43:06 EDT 2010


I always assumed that using lists as trees/sets/maps was fairly idiomatic Scheme when prototyping / dealing with small datasets.

> Subject: Re: [plt-scheme] append-map examples
> From: matthias at ccs.neu.edu
> Date: Fri, 9 Apr 2010 22:49:29 -0400
> CC: skeptic2000 at hotmail.com; plt-scheme at list.cs.brown.edu
> To: ryanc at ccs.neu.edu
> 
> 
> Dan Friedman once shared a rule with me: when you use append-map, you are using the wrong data representation. 
> 
> Examples: 
> 
> 
> On Apr 9, 2010, at 10:40 PM, Ryan Culpepper wrote:
> 
> > Skeptic . wrote:
> >> Hi,
> >> Does someone knows canonical/pedagogical exemples of append-map except other than flatten ?
> > 
> > Collect a list of all the X in a Y.
> > 
> > eg, the list of free variables in a lambda term
> 
> Free variables come in sets, not lists. 
> 
> 
> > eg, the list of links in a web page (as xexpr or sxml)
> 
> Ditto. 
> 
> 
 		 	   		  
_________________________________________________________________
Messenger sur votre téléphone = MI sur la route 
http://go.microsoft.com/?linkid=9724474
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20100409/ffe1ac40/attachment.html>

Posted on the users mailing list.