Skip to content

Resource ​

Looks up a catalog entry by name and, given further arguments, calls its head with them; a name alone resolves to the head itself.

Resource(name, args*)looks up a catalog entry by name and calls its head with any further arguments, or resolves to the head alone if none are given
Typed signatures
TypePackageApplies
(string, number*) -> anycatalogalways

Domain: Catalog

Examples

Basic #

A name alone resolves to the head itself

live ↗
InResource(Subsets)\mathrm{Resource}(\text{Subsets})OutSubsets\mathrm{Subsets}

Further arguments call the head

live ↗
InCount(Resource(Subsets,3))\mathrm{Count}(\mathrm{Resource}(\text{Subsets}, 3))Out88
About
Examples2