Hi there,
by sheer luck I stumbled across a mistake in the map-reduce
documentation. It says:
"Unclips the first element of the sequence, calls map-quot on that
element, and proceeds like a reduce, where the calculated element is
the identity element and the rest of the sequence is the sequence to
reduce."
Alright, example:
{ 1 3 5 } [ sq ] [ + ] map-reduce
"Unclips the first element of the sequence,"
{ 1 3 } 5 [ sq ] [ + ] map-reduce
"calls map-quot on that element, and proceeds like a reduce, where the
calculated element is the identity element and the rest of the
sequence is the sequence to reduce."
{ 1 3 } 25 [ + ] reduce
=> 29
Maybe better to say:
"Calls map with map-quot on the complete sequence, then unclips the
first element and proceeds like a reduce..."
same thing in 2map-reduce
Cheers,
Ben
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk