Sha256: 05b117180938c5fcede49d1439a0ff629fc86cc21089762ce0ed597b499c4d5a
Contents?: true
Size: 599 Bytes
Versions: 1
Compression:
Stored size: 599 Bytes
Contents
module RubyLambdas module Numerics module ToExport # # Operators # Add = -> (a, b) { a + b } Divide = -> (a, b) { a / b } Subtract = -> (a, b) { a - b } Multiply = -> (a, b) { a * b } # # Comparables # GreaterThan = -> (a, b) { a > b } GreaterThanOrEqual = -> (a, b) { a >= b } LessThan = -> (a, b) { a < b } LessThanOrEqual = -> (a, b) { a <= b } end ALIASES = { GreaterThan: :Gt, GreaterThanOrEqual: :Gte, LessThan: :Lt, LessThanOrEqual: :Lte, }.freeze end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-lambdas-0.4.0 | lib/ruby/lambdas/numerics/to_export.rb |