Skip to main content

Function

A function with a name, which might take Parameters and return a value of a certain type.

This schema type is marked as experimental ๐Ÿงช and is subject to change.

Propertiesโ€‹

Name@idTypeDescriptionInherited from
idschema:idstringThe identifier for this item.Entity
metastencila:metaobjectMetadata associated with this item.Entity
nameschema:namestringThe name of the function. See note 1.Function
parametersstencila:parametersArray of ParameterThe parameters of the function.Function
returnsstencila:returnsValidatorTypesThe return type of the function.Function

Notesโ€‹

  1. name : The name property is not required; this allows for anonymous functions (although these are not yet implemented in Stencila interpreters). The regex allows for snake_case and camelCase names but excludes PascalCase for parameter names.
  • Parent: Entity
  • Descendants: None

Available asโ€‹

Sourceโ€‹

This documentation was generated from Function.schema.yaml.