(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.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |