function version of iseven in Lua and Ruby, removal of a stub in Ruby