CloudFunction[fun]
represents a pure function that evaluates fun[args] in the cloud.
represents a function that applies the contents of the specified cloud object.
CloudFunction[f,h]
wraps the head h around the result of the function before returning it.
CloudFunction
CloudFunction[fun]
represents a pure function that evaluates fun[args] in the cloud.
represents a function that applies the contents of the specified cloud object.
CloudFunction[f,h]
wraps the head h around the result of the function before returning it.
Details and Options
- CloudFunction[fun][args] evaluates args locally, then evaluates fun[args] in the cloud and returns the result.
- CloudFunction[CloudObject[…]][args] works only if the content of the CloudObject is a Wolfram Language expression.
- CloudFunction has the following option:
-
CloudBase $CloudBase what cloud to do the evaluation in IncludeDefinitions True whether to automatically include dependencies - With IncludeDefinitions->True, definitions required for the evaluation of fun will automatically be sent to the cloud through CloudFunction.
- With IncludeDefinitions->False, definitions required for the evaluation of fun must be loaded and evaluated explicitly by fun itself.
Examples
open all close allBasic Examples (2)
Scope (1)
Options (2)
CloudBase (1)
IncludeDefinitions (1)
By default, local function and other symbol definitions are included with the expression evaluated in the cloud:
f[x_] := x + 1
CloudFunction[f, Hold][99]Do not include local definitions:
f[x_] := x + 1
CloudFunction[f, Hold, IncludeDefinitions -> False][99]Properties & Relations (1)
In a cloud evaluation, $CloudEvaluation is set to True:
CloudFunction[$CloudEvaluation&][]Related Guides
Text
Wolfram Research (2014), CloudFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/CloudFunction.html (updated 2019).
CMS
Wolfram Language. 2014. "CloudFunction." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/CloudFunction.html.
APA
Wolfram Language. (2014). CloudFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CloudFunction.html
BibTeX
@misc{reference.wolfram_2026_cloudfunction, author="Wolfram Research", title="{CloudFunction}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/CloudFunction.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_cloudfunction, organization={Wolfram Research}, title={CloudFunction}, year={2019}, url={https://reference.wolfram.com/language/ref/CloudFunction.html}, note=[Accessed: 13-June-2026]}