lib/totally_lazy/pair.rb in totally_lazy-0.1.54 vs lib/totally_lazy/pair.rb in totally_lazy-0.1.55

- old
+ new

@@ -1,9 +1,17 @@ module Pairs private def pair(first, second) Pair.new(first, second) end + + def first + ->(pair) { pair.first } + end + + def second + ->(pair) { pair.second } + end end class Pair include Comparable \ No newline at end of file