({{, (RefLink[ResourceFunction, paclet:ref/ResourceFunction])[resource]
represents the function associated with the specified resource.}, {, (RefLink[ResourceFunction, paclet:ref/ResourceFunction])[resource,prop]
gives the specified property of the resource.}})

OpenersNotesSection(Spacer1)Details

(RefLink[ResourceFunction, paclet:ref/ResourceFunction])["name"] searches in order for a resource function with the specified name in the following locations:

In (RefLink[ResourceFunction, paclet:ref/ResourceFunction])[resource], resource can have the following forms:

(RefLink[ResourceFunction, paclet:ref/ResourceFunction])[resource][args …] applies the function to the given arguments.

The available properties are given by (RefLink[ResourceFunction, paclet:ref/ResourceFunction])[resource,"Properties"] and typically include properties of the (RefLink[ResourceObject, paclet:ref/ResourceObject]) as well as:

Function definitions in a function resource are typically not explicitly retrieved until the function is used.

When the definitions for a function resource are retrieved, they are usually cached in (RefLink[$LocalBase, paclet:ref/$LocalBase]).

(RefLink[ResourceObject, paclet:ref/ResourceObject])[ResourceFunction[…]] returns the resource object containing the given function.

(RefLink[ResourceFunction, paclet:ref/ResourceFunction])[ResourceFunction[…],prop] gives a property for an existing resource function.

(RefLink[CloudDeploy, paclet:ref/CloudDeploy])[ResourceFunction[…]] or (RefLink[CloudPublish, paclet:ref/CloudPublish])[ResourceFunction[…]] saves a resource function in the cloud.

(RefLink[LocalCache, paclet:ref/LocalCache])[ResourceFunction[…]] saves a resource function as a (RefLink[LocalObject, paclet:ref/LocalObject])[…].

The following functions work on (RefLink[ResourceFunction, paclet:ref/ResourceFunction]) objects: (RefLink[Attributes, paclet:ref/Attributes]), (RefLink[Definition, paclet:ref/Definition]), (RefLink[DownValues, paclet:ref/DownValues]), (RefLink[FullDefinition, paclet:ref/FullDefinition]), (RefLink[Options, paclet:ref/Options]) and (RefLink[SymbolName, paclet:ref/SymbolName]).

New resource functions can be defined with (RefLink[DefineResourceFunction, paclet:ref/DefineResourceFunction]) or with a definition notebook from File ▶ New ▶ Repository Item ▶ Function Repository Item.

OpenersPrimaryExamplesSection(Spacer1)Examples  (5)

OpenersExampleSection0(Spacer1)Basic Examples  (4)

Get a resource function using its name:

ResourceFunction["NestedLookup"]

Apply the resource function to arguments:

(Row[, (Spacer1), "NestedLookup"])[\[LeftAssociation]"Flintstones"->\[LeftAssociation]"Fred"->\[LeftAssociation]"Job"->"Bronto crane Operator"\[RightAssociation],"Wilma"->\[LeftAssociation]"Job"->"Cavemaker"\[RightAssociation],"Pebbles"->\[LeftAssociation]"Job"->"Child"\[RightAssociation]\[RightAssociation]\[RightAssociation], {"Flintstones", "Fred", "Job"}]

Apply a function from a (RefLink[ResourceObject, paclet:ref/ResourceObject]) to a value:

ResourceFunction[ResourceObject[]][100]

Find properties of a resource function:

ResourceFunction["MoveMouse","Description"]

Create a resource function from an (RefLink[Association, paclet:ref/Association]):

rf=ResourceFunction[<|"Name"->"Half Squared","Function"->((#/2)^2&),"ResourceType"->"Function"|>]

rf[20]

OpenersExampleSection2(Spacer1)Properties & Relations  (1)

The two-argument form of (RefLink[ResourceFunction, paclet:ref/ResourceFunction]) provides the same values as (RefLink[ResourceObject, paclet:ref/ResourceObject]):

ResourceFunction["GrayCode","Description"]

ResourceObject["GrayCode"]["Description"]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[DefineResourceFunction, paclet:ref/DefineResourceFunction])  ▪  (RefLink[ResourceObject, paclet:ref/ResourceObject])  ▪  (RefLink[ResourceData, paclet:ref/ResourceData])  ▪  (RefLink[Function, paclet:ref/Function])  ▪  (RefLink[NetModel, paclet:ref/NetModel])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Package Development, paclet:guide/PackageDevelopment])}, {▪(RefLinkPlain[Wolfram Function Repository, paclet:guide/WolframFunctionRepository])}, {▪(RefLinkPlain[Wolfram Resource System, paclet:guide/WolframResourceSystem])}})}})

({{(Spacer1), ({{(Spacer1)Related Links}, {(WebLink[DocumentationFooterIconsRelatedLinks-DataRepository.png(Spacer1)Wolfram Data Repository, http://datarepository.wolframcloud.com])}})}})