Common dispatch function definitions.
Common dispatch function definitions.
(dispatch-on-first-arg dispatch-fn)
Create a dispatch function this will dispatch on the value of
(dispatch-fn <first-arg>)
and ignore all other args.
Create a dispatch function this will dispatch on the value of ```clj (dispatch-fn <first-arg>) ``` and ignore all other args.
(dispatch-on-first-four-args dispatch-fn)
(dispatch-on-first-four-args dispatch-fn-a
dispatch-fn-b
dispatch-fn-c
dispatch-fn-d)
Create a dispatch function this will dispatch on the value of
[(dispatch-fn <first-arg>) (dispatch-fn <second-arg>) (dispatch-fn <third-arg>) (dispatch-fn <fourth-arg>)]
and ignore all other args.
Create a dispatch function this will dispatch on the value of ```clj [(dispatch-fn <first-arg>) (dispatch-fn <second-arg>) (dispatch-fn <third-arg>) (dispatch-fn <fourth-arg>)] ``` and ignore all other args.
(dispatch-on-first-three-args dispatch-fn)
(dispatch-on-first-three-args dispatch-fn-a dispatch-fn-b dispatch-fn-c)
Create a dispatch function this will dispatch on the value of
[(dispatch-fn <first-arg>) (dispatch-fn <second-arg>) (dispatch-fn <third-arg>)]
and ignore all other args.
Create a dispatch function this will dispatch on the value of ```clj [(dispatch-fn <first-arg>) (dispatch-fn <second-arg>) (dispatch-fn <third-arg>)] ``` and ignore all other args.
(dispatch-on-first-two-args dispatch-fn)
(dispatch-on-first-two-args dispatch-fn-a dispatch-fn-b)
Create a dispatch function this will dispatch on the value of
[(dispatch-fn <first-arg>) (dispatch-fn <second-arg>)]
and ignore all other args.
Create a dispatch function this will dispatch on the value of ```clj [(dispatch-fn <first-arg>) (dispatch-fn <second-arg>)] ``` and ignore all other args.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close