Pattern Methods

Product: 

Class: 

Warning

uCalc API Preview Release Notice:The uCalc engine has successfully transitioned to modern cross-platform environments.The next phase envolves some structural changes, performance optimizations, and API refinements.The API is subject to breaking changes prior to the stable release. Please evaluate the preview version thoroughly before production use.

Remarks

A pattern method performs an action or returns a computed value. Patterns are enclosed by curly braces, and inside the opening brace it starts with the @ symbol, followed by the method keyword, and optionally a colon and a body.

Some methods may appear in both the pattern and the replacement sections, while others may appear in only one or the other.

Examples