class Ramda::Internal::Transducers::FilterTransducer
Filter list based on predicate which receives x
Public Instance Methods
call(predicate, reducer)
click to toggle source
predicate - fn with 1 arity
# File lib/ramda/internal/transducers/filter_transdurer.rb, line 7 def call(predicate, reducer) lambda do |acc, x| if predicate.call(x) reducer.call(acc, x) else acc end end end