Liking cljdoc? Tell your friends :D

kineticfire.control-flow.core


continue->clj/smacro

(continue-> x continue-fn & forms)

A macro to thread first: continue if the evaluation function returns 'true'.

Threads the expression x through the forms forms. Inserts x as the second item in the first form, making a list of it if it is not a list already. If there are no more forms, then returns the result. If there are more forms, then evaluates the continue-fn, which takes exactly one argument: the output from the evaluation of the current form. If the continue-fn returns 'false', then returns the current result (and does not continue evaluating the forms) else if 'true' then continues evaluating the forms by inserting the first form as the second item in second form, and so on until no forms remain. The continue-fn is not called if there are no forms or on the result from the evaluation of the last form.

A macro to thread first:  continue if the evaluation function returns 'true'.

Threads the expression `x` through the forms `forms`. Inserts `x` as the second item in the first form, making a list
of it if it is not a list already.  If there are no more forms, then returns the result.  If there are more forms,
then evaluates the `continue-fn`, which takes exactly one argument:  the output from the evaluation of the current
form.  If the `continue-fn` returns 'false', then returns the current result (and does not continue evaluating the
forms) else if 'true' then continues evaluating the forms by inserting the first form as the second item in second
form, and so on until no forms remain.  The `continue-fn` is not called if there are no forms or on the result from
the evaluation of the last form.
sourceraw docstring

continue->>clj/smacro

(continue->> x continue-fn & forms)

A macro to thread last: continue if the evaluation function returns 'true'.

Threads the expression x through the forms forms. Inserts x as the last item in the first form, making a list of it if it is not a list already. If there are no more forms, then returns the result. If there are more forms, then evaluates the continue-fn, which takes exactly one argument: the output from the evaluation of the current form. If the continue-fn returns 'true', then returns the current result (and stops evaluating the forms) else if 'false' then continues evaluating the forms by inserting the first form as the last item in second form, and so on until no forms remain. The continue-fn is not called if there are no forms or on the result from the evaluation of the last form.

A macro to thread last:  continue if the evaluation function returns 'true'.

Threads the expression `x` through the forms `forms`. Inserts `x` as the last item in the first form, making a list
of it if it is not a list already.  If there are no more forms, then returns the result.  If there are more forms,
then evaluates the `continue-fn`, which takes exactly one argument:  the output from the evaluation of the current
form.  If the `continue-fn` returns 'true', then returns the current result (and stops evaluating the forms) else if
'false' then continues evaluating the forms by inserting the first form as the last item in second form, and so on
until no forms remain.  The `continue-fn` is not called if there are no forms or on the result from the evaluation of
the last form.
sourceraw docstring

continue-as->clj/smacro

(continue-as-> expr name continue-fn & forms)

A macro to thread in an arbitrary position: continue if the evaluation function returns 'true'.

Threads the expression expr through the forms forms. Binds name to expr in the first form, making a list of it if it is not a list already. If there are no more forms, then returns the result. If there are more forms, then evaluates the continue-fn, which takes exactly one argument: the output from the evaluation of the current form. If the continue-fn returns 'false', then returns the current result (and does not continue evaluating the forms) else if 'true' then continues evaluating the forms by binding name to the result from the first form, and so on until no forms remain. The continue-fn is not called if there are no forms or on the result from the evaluation of the last form.

A macro to thread in an arbitrary position:  continue if the evaluation function returns 'true'.

Threads the expression `expr` through the forms `forms`. Binds `name` to `expr` in the first form, making a list
of it if it is not a list already.  If there are no more forms, then returns the result.  If there are more forms,
then evaluates the `continue-fn`, which takes exactly one argument:  the output from the evaluation of the current
form.  If the `continue-fn` returns 'false', then returns the current result (and does not continue evaluating the
forms) else if 'true' then continues evaluating the forms by binding `name` to the result from the first form, and so
on until no forms remain.  The `continue-fn` is not called if there are no forms or on the result from the evaluation
of the last form.
sourceraw docstring

continue-mod->clj/smacro

(continue-mod-> x continue-mod-fn & forms)

A macro to thread first: modify the result with the evaluation function, and continue if it indicates 'true'.

Threads the expression x through the forms forms. Inserts x as the second item in the first form, making a list of it if it is not a list already. Passes the result of the continue-mod-fn, which takes exactly one argument: the output from the evaluation of the current form. The continue-mod-fn must return a map with key ':result' set to the data, either modified or not, and key ':continue' to 'false' to not pass the result to next from and return the result else 'true' to continue and pass the item ':data' as the second item as input to the next form. And so on until there are no more forms. The continue-mod-fn is not called if there are no forms; it is always called on the result from the evaluation of the last form.

A macro to thread first:  modify the result with the evaluation function, and continue if it indicates 'true'.

Threads the expression `x` through the forms `forms`. Inserts `x` as the second item in the first form, making a list
of it if it is not a list already.  Passes the result of the `continue-mod-fn`, which takes exactly one argument:  the
output from the evaluation of the current form.  The `continue-mod-fn` must return a map with key ':result' set to the
data, either modified or not, and key ':continue' to 'false' to not pass the result to next from and return the result
else 'true' to continue and pass the item ':data' as the second item as input to the next form.  And so on until there
are no more forms.  The `continue-mod-fn` is not called if there are no forms; it is always called on the result from
the evaluation of the last form.
sourceraw docstring

continue-mod->>clj/smacro

(continue-mod->> x continue-mod-fn & forms)

A macro to thread last: modify the result with the evaluation function, and continue if it indicates 'true'.

Threads the expression x through the forms forms. Inserts x as the last item in the first form, making a list of it if it is not a list already. Passes the result of the continue-mod-fn, which takes exactly one argument: the output from the evaluation of the current form. The continue-mod-fn must return a map with key ':result' set to the data, either modified or not, and key ':continue' to 'false' to not pass the result to next from and return the result else 'true' to continue and pass the item ':data' as the last item as input to the next form. And so on until there are no more forms. The continue-mod-fn is not called if there are no forms; it is always called on the result from the evaluation of the last form.

A macro to thread last:  modify the result with the evaluation function, and continue if it indicates 'true'.

Threads the expression `x` through the forms `forms`. Inserts `x` as the last item in the first form, making a list
of it if it is not a list already.  Passes the result of the `continue-mod-fn`, which takes exactly one argument:  the
output from the evaluation of the current form.  The `continue-mod-fn` must return a map with key ':result' set to the
data, either modified or not, and key ':continue' to 'false' to not pass the result to next from and return the result
else 'true' to continue and pass the item ':data' as the last item as input to the next form.  And so on until there
are no more forms.  The `continue-mod-fn` is not called if there are no forms; it is always called on the result from
the evaluation of the last form.
sourceraw docstring

continue-mod-as->clj/smacro

(continue-mod-as-> expr name continue-mod-fn & forms)

A macro to thread in an arbitrary position: modify the result with the evaluation function, and continue if it indicates 'true'.

Threads the expression expr through the forms forms. Binds name to expr in the first form, making a list of it if it is not a list already. Passes the result of the continue-mod-fn, which takes exactly one argument: the output from the evaluation of the current form. The continue-mod-fn must return a map with key ':result' set to the data, either modified or not, and key ':continue' to 'false' to not pass the result to next from and return the result else 'true' to continue and pass the item ':data' to the next form by binding name to the result from the first form. And so on until there are no more forms. The continue-mod-fn is not called if there are no forms; it is always called on the result from the evaluation of the last form.

A macro to thread in an arbitrary position:  modify the result with the evaluation function, and continue if it
indicates 'true'.

Threads the expression `expr` through the forms `forms`. Binds `name` to `expr` in the first form, making a list of it
if it is not a list already.  Passes the result of the `continue-mod-fn`, which takes exactly one argument:  the
output from the evaluation of the current form.  The `continue-mod-fn` must return a map with key ':result' set to the
data, either modified or not, and key ':continue' to 'false' to not pass the result to next from and return the result
else 'true' to continue and pass the item ':data' to the next form by binding `name` to the result from the first form.
And so on until there are no more forms.  The `continue-mod-fn` is not called if there are no forms; it is always
called on the result from the evaluation of the last form.
sourceraw docstring

stop->clj/smacro

(stop-> x stop-fn & forms)

A macro to thread first: stop if the evaluation function returns 'true'.

Threads the expression x through the forms forms. Inserts x as the second item in the first form, making a list of it if it is not a list already. If there are no more forms, then returns the result. If there are more forms, then evaluates the stop-fn, which takes exactly one argument: the output from the evaluation of the current form. If the stop-fn returns 'true', then returns the current result (and stops evaluating the forms) else if 'false' then continues evaluating the forms by inserting the first form as the second item in second form, and so on until no forms remain. The stop-fn is not called if there are no forms or on the result from the evaluation of the last form.

A macro to thread first:  stop if the evaluation function returns 'true'.

Threads the expression `x` through the forms `forms`. Inserts `x` as the second item in the first form, making a list
of it if it is not a list already.  If there are no more forms, then returns the result.  If there are more forms,
then evaluates the `stop-fn`, which takes exactly one argument:  the output from the evaluation of the current form.
If the `stop-fn` returns 'true', then returns the current result (and stops evaluating the forms) else if 'false'
then continues evaluating the forms by inserting the first form as the second item in second form, and so on until no
forms remain.  The `stop-fn` is not called if there are no forms or on the result from the evaluation of the last
form.
sourceraw docstring

stop->>clj/smacro

(stop->> x stop-fn & forms)

A macro to thread last: stop if the evaluation function returns 'true'.

Threads the expression x through the forms forms. Inserts x as the last item in the first form, making a list of it if it is not a list already. If there are no more forms, then returns the result. If there are more forms, then evaluates the stop-fn, which takes exactly one argument: the output from the evaluation of the current form. If the stop-fn returns 'true', then returns the current result (and stops evaluating the forms) else if 'false' then continues evaluating the forms by inserting the first form as the last item in second form, and so on until no forms remain. The stop-fn is not called if there are no forms or on the result from the evaluation of the last form.

A macro to thread last:  stop if the evaluation function returns 'true'.

Threads the expression `x` through the forms `forms`. Inserts `x` as the last item in the first form, making a list
of it if it is not a list already.  If there are no more forms, then returns the result.  If there are more forms,
then evaluates the `stop-fn`, which takes exactly one argument:  the output from the evaluation of the current form.
If the `stop-fn` returns 'true', then returns the current result (and stops evaluating the forms) else if 'false'
then continues evaluating the forms by inserting the first form as the last item in second form, and so on until no
forms remain.  The `stop-fn` is not called if there are no forms or on the result from the evaluation of the last
form.
sourceraw docstring

stop-as->clj/smacro

(stop-as-> expr name stop-fn & forms)

A macro to thread in an arbitrary position: stop if the evaluation function returns 'true'.

Threads the expression expr through the forms forms. Binds name to expr in the first form, making a list of it if it is not a list already. If there are no more forms, then returns the result. If there are more forms, then evaluates the stop-fn, which takes exactly one argument: the output from the evaluation of the current form. If the stop-fn returns 'true', then returns the current result (and does not continue evaluating the forms) else if 'false' then continues evaluating the forms by binding name to the result for the second form, and so on until no forms remain. The stop-fn is not called if there are no forms or on the result from the evaluation of the last form.

A macro to thread in an arbitrary position:  stop if the evaluation function returns 'true'.

Threads the expression `expr` through the forms `forms`. Binds `name` to `expr` in the first form, making a list
of it if it is not a list already.  If there are no more forms, then returns the result.  If there are more forms,
then evaluates the `stop-fn`, which takes exactly one argument:  the output from the evaluation of the current form.
If the `stop-fn` returns 'true', then returns the current result (and does not continue evaluating the forms) else if
'false' then continues evaluating the forms by binding `name` to the result for the second form, and so on until no
forms remain.  The `stop-fn` is not called if there are no forms or on the result from the evaluation of the last
form.
sourceraw docstring

stop-mod->clj/smacro

(stop-mod-> x stop-mod-fn & forms)

A macro to thread first: modify the result with the evaluation function, and stop if it indicates 'true'.

Threads the expression x through the forms forms. Inserts x as the second item in the first form, making a list of it if it is not a list already. Passes the result of the stop-mod-fn, which takes exactly one argument: the output from the evaluation of the current form. The stop-mod-fn must return a map with key ':result' set to the data, either modified or not, and key ':stop' to 'true' to not pass the result to next from and return the result else 'false' to continue and pass the item ':data' as the second item as input to the next form. And so on until there are no more forms. The stop-mod-fn is not called if there are no forms; it is always called on the result from the evaluation of the last form.

A macro to thread first:  modify the result with the evaluation function, and stop if it indicates 'true'.

Threads the expression `x` through the forms `forms`. Inserts `x` as the second item in the first form, making a list
of it if it is not a list already.  Passes the result of the `stop-mod-fn`, which takes exactly one argument:  the
output from the evaluation of the current form.  The `stop-mod-fn` must return a map with key ':result' set to the
data, either modified or not, and key ':stop' to 'true' to not pass the result to next from and return the result else
'false' to continue and pass the item ':data' as the second item as input to the next form.  And so on until there
are no more forms.  The `stop-mod-fn` is not called if there are no forms; it is always called on the result from the
evaluation of the last form.
sourceraw docstring

stop-mod->>clj/smacro

(stop-mod->> x stop-mod-fn & forms)

A macro to thread last: modify the result with the evaluation function, and stop if it indicates 'true'.

Threads the expression x through the forms forms. Inserts x as the last item in the first form, making a list of it if it is not a list already. Passes the result to the stop-mod-fn, which takes exactly one argument: the output from the evaluation of the current form. The stop-mod-fn must return a map with key ':result' set to the data, either modified or not, and key ':stop' to 'true' to not pass the result to next from and return the result else 'false' to continue and pass the item ':data' as the last item of input to the next form. And so on until there are no more forms. The stop-mod-fn is not called if there are no forms; it is always called on the result from the evaluation of the last form.

A macro to thread last:  modify the result with the evaluation function, and stop if it indicates 'true'.

Threads the expression `x` through the forms `forms`. Inserts `x` as the last item in the first form, making a list
of it if it is not a list already.  Passes the result to the `stop-mod-fn`, which takes exactly one argument:  the
output from the evaluation of the current form.  The `stop-mod-fn` must return a map with key ':result' set to the
data, either modified or not, and key ':stop' to 'true' to not pass the result to next from and return the result else
'false' to continue and pass the item ':data' as the last item of input to the next form.  And so on until there are
no more forms. The `stop-mod-fn` is not called if there are no forms; it is always called on the result from the
evaluation of the last form.
sourceraw docstring

stop-mod-as->clj/smacro

(stop-mod-as-> expr name stop-mod-fn & forms)

A macro to thread in an arbitrary position: modify the result with the evaluation function, and stop if it indicates 'true'.

Threads the expression expr through the forms forms. Binds name to expr in the first form, making a list of it if it is not a list already. Passes the result of the stop-mod-fn, which takes exactly one argument: the output from the evaluation of the current form. The stop-mod-fn must return a map with key ':result' set to the data, either modified or not, and key ':stop' to 'false' to not pass the result to next from and return the result else 'true' to continue and pass the item ':data' to the next form by binding name to the result from the first form. And so on until there are no more forms. The stop-mod-fn is not called if there are no forms; it is always called on the result from the evaluation of the last form.

A macro to thread in an arbitrary position:  modify the result with the evaluation function, and stop if it
indicates 'true'.

Threads the expression `expr` through the forms `forms`. Binds `name` to `expr` in the first form, making a list of it
if it is not a list already.  Passes the result of the `stop-mod-fn`, which takes exactly one argument:  the
output from the evaluation of the current form.  The `stop-mod-fn` must return a map with key ':result' set to the
data, either modified or not, and key ':stop' to 'false' to not pass the result to next from and return the result
else 'true' to continue and pass the item ':data' to the next form by binding `name` to the result from the first form.
And so on until there are no more forms.  The `stop-mod-fn` is not called if there are no forms; it is always
called on the result from the evaluation of the last form.
sourceraw docstring

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

× close