Sha256: eee65f6fbe5174a151cc3b6a6844f2fc757dde5817c259d3d8b66f5e80756a2c
Contents?: true
Size: 596 Bytes
Versions: 1
Compression:
Stored size: 596 Bytes
Contents
module Numerics require_relative "import" require_relative "numerics/to_export" RubyLambdas::Import.(from: RubyLambdas::Numerics, to: self) # # Operators # def self.+(a) Add[a] end def self./(b) -> a { Divide[a, b] } end def self.-(b) -> a { Subtract[a, b] } end def self.*(a) Multiply[a] end # # Comparables # def self.>(b) -> a { GreaterThan[a, b] } end def self.>=(b) -> a { GreaterThanOrEqual[a, b] } end def self.<(b) -> a { LessThan[a, b] } end def self.<=(b) -> a { LessThanOrEqual[a, b] } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-lambdas-0.4.0 | lib/ruby/lambdas/numerics.rb |