Sha256: 11bf7f67da5999226ac899862f867fc2f628199ac667057120c3cc9bb535face

Contents?: true

Size: 118 Bytes

Versions: 15

Compression:

Stored size: 118 Bytes

Contents

module Comparators
  def ascending
    -> (a,b) { a <=> b }
  end

  def descending
    -> (a,b) { b <=> a }
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
totally_lazy-0.1.22 lib/comparators.rb
totally_lazy-0.1.21 lib/comparators.rb
totally_lazy-0.1.20 lib/comparators.rb
totally_lazy-0.1.19 lib/comparators.rb
totally_lazy-0.1.18 lib/comparators.rb
totally_lazy-0.1.17 lib/comparators.rb
totally_lazy-0.1.16 lib/comparators.rb
totally_lazy-0.1.15 lib/comparators.rb
totally_lazy-0.1.14 lib/comparators.rb
totally_lazy-0.1.13 lib/comparators.rb
totally_lazy-0.1.12 lib/comparators.rb
totally_lazy-0.1.11 lib/comparators.rb
totally_lazy-0.1.10 lib/comparators.rb
totally_lazy-0.1.9 lib/comparators.rb
totally_lazy-0.1.0 lib/comparators.rb