(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.
(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.
(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.
(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.
(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.
(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.
(continue-x-> x & forms)
A macro to thread first the original value only: continue if the evaluation function returns boolean '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 if the form returns boolean 'true' continues to the next form by passing x
(NOT the result of the form) as the
second item in the next form until there are no forms, returning the result of the last form. If a form returns
anything but boolean 'true', then that value is returned and no more forms are evaluated.
A macro to thread first the original value only: continue if the evaluation function returns boolean '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 if the form returns boolean 'true' continues to the next form by passing `x` (NOT the result of the form) as the second item in the next form until there are no forms, returning the result of the last form. If a form returns anything but boolean 'true', then that value is returned and no more forms are evaluated.
(continue-x->> x & forms)
A macro to thread last the original value only: continue if the evaluation function returns boolean '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 if the form returns boolean 'true' continues to the next form by passing x
(NOT the result of the form) as the
last item in the next form until there are no forms, returning the result of the last form. If a form returns
anything but boolean 'true', then that value is returned and no more forms are evaluated.
A macro to thread last the original value only: continue if the evaluation function returns boolean '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 if the form returns boolean 'true' continues to the next form by passing `x` (NOT the result of the form) as the last item in the next form until there are no forms, returning the result of the last form. If a form returns anything but boolean 'true', then that value is returned and no more forms are evaluated.
(continue-x-as-> expr name & forms)
A macro to thread in an arbitrary position the original value only: continue if the evaluation function returns boolean '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 applies the expr
(NOT the output of the form) to the next form by binding name
to expr
and so on until no
forms remain so long as each form returns boolean 'true'. If a form returns anything other than boolean 'true', then
that result is returned and the evaluation of forms stops.
A macro to thread in an arbitrary position the original value only: continue if the evaluation function returns boolean '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 applies the `expr` (NOT the output of the form) to the next form by binding `name` to `expr` and so on until no forms remain so long as each form returns boolean 'true'. If a form returns anything other than boolean 'true', then that result is returned and the evaluation of forms stops.
(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.
(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.
(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.
(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.
(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.
(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.
(stop-x-> x & forms)
A macro to thread first the original value only: stop if the evaluation function returns anything other than boolean 'false'.
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 passes x
(NOT the result of the form) to the next form and so on until there are no more forms, returning
the result of the last form. If a form returns anything except boolean 'false', then stops evaluating forms and
returns that result.
A macro to thread first the original value only: stop if the evaluation function returns anything other than boolean 'false'. 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 passes `x` (NOT the result of the form) to the next form and so on until there are no more forms, returning the result of the last form. If a form returns anything except boolean 'false', then stops evaluating forms and returns that result.
(stop-x->> x & forms)
A macro to thread last the original value only: stop if the evaluation function returns anything other than boolean 'false'.
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 passes x
(NOT the result of the form) to the next form and so on until there are no more forms, returning
the result of the last form. If a form returns anything except boolean 'false', then stops evaluating forms and
returns that result.
A macro to thread last the original value only: stop if the evaluation function returns anything other than boolean 'false'. 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 passes `x` (NOT the result of the form) to the next form and so on until there are no more forms, returning the result of the last form. If a form returns anything except boolean 'false', then stops evaluating forms and returns that result.
(stop-x-as-> expr name & forms)
A macro to thread in an arbitrary position the original value only: stop if the evaluation function returns anything other than boolean 'false'.
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 passes to those forms the original value expr
until there are no forms or until a function returns anything
other than boolean 'false'.
A macro to thread in an arbitrary position the original value only: stop if the evaluation function returns anything other than boolean 'false'. 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 passes to those forms the original value `expr` until there are no forms or until a function returns anything other than boolean 'false'.
cljdoc builds & hosts documentation for Clojure/Script libraries
⌘+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
⌘+/ | Jump to the search field |