Sha256: 3c417de6653bcf4b9f934a546e10d927049007af55d51f4c214367a7afe74faa

Contents?: true

Size: 203 Bytes

Versions: 14

Compression:

Stored size: 203 Bytes

Contents

module Predicates
  private
  def _not(pred)
    -> (bool) { !pred.(bool) }
  end

  def is_left?
    -> (either) { either.is_left? }
  end

  def is_right?
    -> (either) { either.is_right? }
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
totally_lazy-0.1.41 lib/totally_lazy/predicates.rb
totally_lazy-0.1.39 lib/totally_lazy/predicates.rb
totally_lazy-0.1.38 lib/totally_lazy/predicates.rb
totally_lazy-0.1.37 lib/totally_lazy/predicates.rb
totally_lazy-0.1.36 lib/totally_lazy/predicates.rb
totally_lazy-0.1.35 lib/totally_lazy/predicates.rb
totally_lazy-0.1.34 lib/totally_lazy/predicates.rb
totally_lazy-0.1.33 lib/totally_lazy/predicates.rb
totally_lazy-0.1.32 lib/totally_lazy/predicates.rb
totally_lazy-0.1.31 lib/totally_lazy/predicates.rb
totally_lazy-0.1.30 lib/totally_lazy/predicates.rb
totally_lazy-0.1.29 lib/totally_lazy/predicates.rb
totally_lazy-0.1.28 lib/totally_lazy/predicates.rb
totally_lazy-0.1.26 lib/totally_lazy/predicates.rb