📄️ ScriptCollection data type
The irScript ScriptCollection data type is used in the same way lists, collections, and arrays are used in other programming languages. It provides iterative and indexed access to its constituent elements, as well as a variety of lookup and filtering operations.
📄️ Creation
ScriptCollection instances are created using square bracket syntax `('[' and ']');` in between the
📄️ Indexing
ScriptCollections use zero-based indices for element lookups.
📄️ Properties
ScriptCollections support a standard set of properties; you cannot add new properties to a collection instance.
📄️ Methods
ScriptCollections support a standard set of methods; you cannot add new methods to a collection instance.
📄️ CLR Interop
irScript supports collection operations on any IEnumerable or IList subclassed instance, not merely ScriptCollections created in irScript proper.
📄️ ScriptFunction data type
ScriptFunctions are objects that encapsulate a function declared in irScript. Instances of ScriptFunction can be assigned to variables or ScriptObject members, and they can be passed as arguments to other ScriptFunctions.
📄️ Null values
Null is a special value that indicates 'no value'. Null can be used as a value anywhere another
📄️ Type conversion
Implicit data type conversion is a core part of the irScript language experience. irScript uses the same implicit data type conversion logic employed by the InRule engine itself.