Question Which reduce function; analog to what? 

Forum: Com Sci 221, U Chicago, Autumn 2001, Discuss Classwork
Re: News Description of final exam problems (Mike O'Donnell)
Re: Question Number 5 question (Peter Chang)
Date: 2001, Dec 06
From: Mike O'Donnell <odonnell@cs.uchicago.edu>

the "slightly higher order" reduce function
I'm not sure which function you're referring to here. And I'm not sure to what you would like an analog. Maybe you can clarify the question.

Generally, each reducer captures a particular form of recursion, and is used to define whatever functions fit that form of recursion. My nested-reduce function is great for summing up all of the integers in nested lists. But it's not very good for concatenating all the top-level sublists in a list of lists, without molesting the inner structure. For that purpose, you want a non-nested reduce.




Mike O'D.


Messages

1. Question agnostic98 by Peter Chang, 2001, Dec 06
1. Warning oops, wrong title... i meant to say "higher order reduce?" by Peter Chang, 2001, Dec 06
2. Feedback "slightly more higher order" has to do with parameters, 2001, Dec 06

to: "Which reduce function; analog to what?"