[plt-scheme] Request for comments on possible planet functions

From: Noel Welsh (noelwelsh at yahoo.com)
Date: Fri Jan 19 11:55:28 EST 2007

--- Corey Sweeney <corey.sweeney at gmail.com> wrote:

> ;sexp functions
> ;;sexp->string
> ;;string->sexp

See expr->string and read-from-string, both in string.ss in
Mzlib.
 
> ;map related functions
> ;;maprec
> ;;any-rec

I would call these tree-map and tree-any.  More consistent
with other code (e.g. SRFI 43).

> ;;unique

Perhaps something in SRFI-1 does this?  It has various
procedures for dealing with lists as sets.

> ;;compose-functions-by-fold

Interesting and useful function.  Name is a bit verbose. 
Maybe 'chain' would do?  I might make it a variable arity
function, rather than accepting a list of functions.

> ;;flatten

Perhaps tree-flatten or tree->list? 

HTH,
Noel

Email: noelwelsh <at> yahoo <dot> com   noel <at> untyped <dot> com
AIM: noelhwelsh
Blogs: http://monospaced.blogspot.com/  http://www.untyped.com/untyping/


 
____________________________________________________________________________________
Food fight? Enjoy some healthy debate 
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367


Posted on the users mailing list.