Sha256: 5d35a6283db2ce1e529622aec275c92137af5e9405503f9d0bb7be0d574a6664
Contents?: true
Size: 343 Bytes
Versions: 7
Compression:
Stored size: 343 Bytes
Contents
class Nydp::Builtin::GreaterThan include Nydp::Builtin::Base, Singleton def builtin_invoke vm, args vm.push_arg (greater_than(args.car, args.cdr) ? Nydp::T : Nydp::NIL) end def greater_than arg, args return true if Nydp::NIL.is? args (arg > args.car) && greater_than(args.car, args.cdr) end def name ; ">" ; end end
Version data entries
7 entries across 7 versions & 1 rubygems