Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 420 Bytes

overriding_expression_functions.md

File metadata and controls

9 lines (7 loc) · 420 Bytes

Overriding expression functions

The framework interprets expressions containing functions, which are implemented within the framework, and they might contain bugs. You can override their implementation as illustrated below:

   FunctionsRepository.register("concat", lambda arguments: "".join(arguments))
   FunctionsRepository.register("trim", lambda text, trim_argument: text.strip(trim_argument[0]))