lib/numbers.rb in totally_lazy-0.1.14 vs lib/numbers.rb in totally_lazy-0.1.15
- old
+ new
@@ -1,9 +1,13 @@
module Numbers
def sum
monoid(->(a, b) { a + b }, 0)
end
+ def add
+ sum
+ end
+
def even
remainder_is(2, 0)
end
def odd
\ No newline at end of file