On 29 Sep 2009, at 10:33 pm, John Cowan wrote: > Alaric Snell-Pym scripsit: > >> Which led me to wonder if we should have string-fold, list-fold, >> vector-fold, and so on; then provide HOFs that accept a "folder" and >> do all the generic sequence operations in terms of that. > > It's out there.
Ah yes, but what I meant was: consider fold to be the 'fundamental sequence abstraction', and try to define functions on sequences like map and so on in terms of a partially-applied fold operator, so they'll work uniformly on strings, lists, vectors, id-monsters from the forbidden planet (which produce a sequence of nightmares), that sort of thing. ABS -- Alaric Snell-Pym Work: http://www.snell-systems.co.uk/ Play: http://www.snell-pym.org.uk/alaric/ Blog: http://www.snell-pym.org.uk/archives/author/alaric/ _______________________________________________ r6rs-discuss mailing list [email protected] http://lists.r6rs.org/cgi-bin/mailman/listinfo/r6rs-discuss
