class PredicateFunction

Public Instance Methods

and(other) click to toggle source
# File lib/totally_lazy/predicates.rb, line 32
def and(other)
  ->(value) { self.(value) && other.(value) }
end
or(other) click to toggle source
# File lib/totally_lazy/predicates.rb, line 36
def or(other)
  ->(value) { self.(value) || other.(value) }
end