Liking cljdoc? Tell your friends :D

methodical.util.dispatch

Common dispatch function definitions.

Common dispatch function definitions.
raw docstring

dispatch-on-first-argclj

(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.
sourceraw docstring

dispatch-on-first-four-argsclj

(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.
sourceraw docstring

dispatch-on-first-three-argsclj

(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.
sourceraw docstring

dispatch-on-first-two-argsclj

(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.
sourceraw docstring

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

× close