Fix forEach typo
implement mapcat with reduce as petrosalema suggested; tabs for indent;
Merge pull request #1144 from evindor/howling-mad

Fix forEach typo