simplify implementation of R.reverse
Merge pull request #542 from davidchambers/reverse

simplify implementation of R.reverse