(iteration step!
&
{:keys [vf kf some? initk]
:or {vf identity kf identity some? some? initk nil}})
creates a seqable/reducible given step!, a function of some (opaque continuation data) k step! - fn of k/nil to (opaque) 'ret' :some? - fn of ret -> truthy, indicating there is a value will not call vf/kf nor continue when false :vf - fn of ret -> v, the values produced by the iteration :kf - fn of ret -> next-k or nil (will not continue) :initk - the first value passed to step! vf, kf default to identity, some? defaults to some?, initk defaults to nil it is presumed that step! with non-initk is unreproducible/non-idempotent if step! with initk is unreproducible, it is on the consumer to not consume twice
creates a seqable/reducible given step!, a function of some (opaque continuation data) k step! - fn of k/nil to (opaque) 'ret' :some? - fn of ret -> truthy, indicating there is a value will not call vf/kf nor continue when false :vf - fn of ret -> v, the values produced by the iteration :kf - fn of ret -> next-k or nil (will not continue) :initk - the first value passed to step! vf, kf default to identity, some? defaults to some?, initk defaults to nil it is presumed that step! with non-initk is unreproducible/non-idempotent if step! with initk is unreproducible, it is on the consumer to not consume twice
(make-paginate m handler params result-kw)
(request-paginated m handler params result-kw)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close