dominictarr/map-reduce — pull request #7 by No9 (2013-06-24 20:43:52+00:00)
Title: Fix for % yoda conditions creating incorrect output

The example was creating the following output

```
MAP a 1 -> odd
MAP b 2 -> odd
MAP c 3 -> even
MAP d 4 -> even
MAP e 5 -> even
Reduce [ 'odd' ] 3
Reduce [ 'even' ] 12
Reduce [] 3
Reduce [] 15
```

because 2 % Number(value) returns 0 if value <= 2 or 2 if value > 2;

The new output is

```
MAP a 1 -> odd
MAP c 3 -> odd
MAP e 5 -> odd
MAP b 2 -> even
MAP d 4 -> even
Reduce [ 'odd' ] 6
Reduce [ 'even' ] 9
Reduce [] 15
```