unnali/rouge — pull request #16 by noprompt (2012-11-30 07:23:01+00:00)
Title: Implementing various functions from clojure.core

Functions include:

`quot`, `rem`, `mod`, `max`, `min`, `zero?`, `pos?`, `neg?`, `odd?`, `even?`, `number?`, `integer?`, `float?`, `rational?`, `bit-and`, `bit-or`, `bit-xor`, `bit-not`, `bit-shift-left`, `bit-shift-right`, `identical?`

The function `complex?` has been added for completeness.

Just a heads up, `range` has been modified to fully realize a Ruby array to prevent blowing the stack. If that's not cool, I can roll it back. My thinking that `range` is a nice function to have when you want to mess around. Even though it's not the clojure way - for now - it's nice to have it respond as you'd expect. On the other hand, the previous implementation does serve as sort of a "fire under your ass" to get working properly! ;)