(apply-kw f args)
(apply-kw f a args)
(apply-kw f a b args)
(apply-kw f a b c args)
(apply-kw f a b c d & args)
Applies the fn 'f' to the argument list provided treating the last argument as a map containing the keyword arguments for 'f'.
Applies the fn 'f' to the argument list provided treating the last argument as a map containing the keyword arguments for 'f'.
(debounce f delay-ms)
Returns a function that debounces the execution of f
. f
will only run after
delay-ms
if no subsequent call has been made with the same arguments. If such
a call is received, the delay will start again.
This approach is useful for dealing with spikes where the processing of intermediate events is not useful until things have "settled"
Returns a function that debounces the execution of `f`. `f` will only run after `delay-ms` if no subsequent call has been made with the same arguments. If such a call is received, the delay will start again. This approach is useful for dealing with spikes where the processing of intermediate events is not useful until things have "settled"
(fsafe f)
(fsafe f default)
Return a function that calls 'f' iff 'f' and all the supplied arguments are not nil.
An optional default value is returned if 'f' or any of it's arguments is nil. If a default is not provided, a nil is used as the default.
Return a function that calls 'f' iff 'f' and all the supplied arguments are not nil. An optional default value is returned if 'f' or any of it's arguments is nil. If a default is not provided, a nil is used as the default.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close