[...] As for the structure of the code as given, I would use helper
functions in place of the `let'. The resulting code will be easier
to read and the helper functions can be tested independently, [...]
Sounds like an overkill in this case, and for most values of
"idiomatic" I'd say that it'd make it less so.
[...code elided...]
Seems slightly overkill to me, too. Or, at least not the norm in the
Scheme code I've seen that I considered good.
But, most importantly, I didn't see test cases for "median-sorted" and
"mean". Live by the sword... :)
--
http://www.neilvandyke.org/
_________________________________________________
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users