Below are revisions for this snippet.

Foreach for Int Array





Syndication

Revision Revison 1
I was coding a project that used arrays when the lack of a standard foreach in C/C++ got to me. So, I coded this little function to help me. It applies a function that returns int to each element of the array.