DefineResourceFunction

DefineResourceFunction[f]

defines a resource function that can be applied to arguments to give the same result as f[].

DefineResourceFunction[f,name]

uses name as the name of the resource function.

Details and Options

Examples

open all close all

Basic Examples  (2)

Create a new ResourceFunction:

In[1]:=
Click for copyable input
Out[1]=

Create a ResourceFunction from a symbol:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

Apply the resulting function to arguments:

In[3]:=
Click for copyable input
Out[3]=

Properties & Relations  (2)

Introduced in 2019
(12.0)