Talk:Apply a callback to an array: Difference between revisions

added a section header for the first topic to cause the TOC to be in the proper location.
(added a section header for the first topic to cause the TOC to be in the proper location.)
 
Line 1:
==properly defining task==
The problem is, of course, that they're all doing slightly different things. To some extent this is unavoidable due to language differences, but when one example is mapping the results into another array and a different example decides to print them, that's just a bit sloppy. Though I certainly don't mind if you have secondary examples demonstrating different techniques or modifications to the basic premise (such as the c++ use of a binary function).