Liking cljdoc? Tell your friends :D
Clojure only.

clojure-commons.progress


notifierclj

(notifier notifications-enabled? notify notify-step)
(notifier notifications-enabled? notify notify-step transform)

This function wraps a given function intended for sequence mapping with a monad that writes progress messages using another given function.

Parameters: notifications-enabled? - a flag indicating whether or not to write progress messages notify - a function used to write progress messages to. It must accept a string as its only parameter. notify-step - the number of sequence elements to pass to the transform before writing a progress message. transform - Optional. This is the sequence mapping function. It must accept a sequence as its only argument. If it is not provided, identity will be used.

Returns: It returns a function that accepts a sequence as its only argument. It returns whatever transform returns.

This function wraps a given function intended for sequence mapping with a monad that writes
progress messages using another given function.

Parameters:
  notifications-enabled? - a flag indicating whether or not to write progress messages
  notify                 - a function used to write progress messages to. It must accept a string
                           as its only parameter.
  notify-step            - the number of sequence elements to pass to the transform before
                           writing a progress message.
  transform              - Optional. This is the sequence mapping function. It must accept a
                           sequence as its only argument.  If it is not provided, identity will
                           be used.

Returns:
  It returns a function that accepts a sequence as its only argument. It returns whatever
  transform returns.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close