News for hackers. Stuff that matters.
Re:Rich Hickey: Reducers - A Library And Model For Collectio... by jules on Tuesday May 08, 2012 @12:33PM (#3944456)
If you use a mapped reducible twice, does that evaluate the function on each element twice?
Re:Rich Hickey: Reducers - A Library And Model For Collectio... by mquander on Tuesday May 08, 2012 @01:26PM (#3944769)
If you call reduce on it twice, then sure, it would do all the work twice.
Re:Rich Hickey: Reducers - A Library And Model For Collectio... by loumf on Tuesday May 08, 2012 @02:00PM (#3944991)
Jules's point is that the map is done twice, which it is. If you don't want that, you can reduce into a collection and then reduce the collection twice.