This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* USE NAMESPACE "Number" */ | |
| Abs = LAMBDA( | |
| _number, | |
| LET( | |
| // Help | |
| Help, TRIM(TEXTSPLIT( | |
| "DESCRIPTION:->Returns the absolute value of a number\nVERSION:->1.0\nPARAMETERS:->_number as number", | |
| "->", | |
| "\n" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* USE NAMESPACE "Replacer" */ | |
| ReplaceText = LAMBDA(_text, _old, _new, | |
| LET( | |
| Help, TRIM(TEXTSPLIT( | |
| "DESCRIPTION:->Replaces all occurrences of _old with _new in _text\nVERSION:->1.0\nPARAMETERS:->_text as text, _old as text, _new as text", | |
| "->", | |
| "\n" | |
| )), | |
| ErrorMessages, {"_text is not text."; "_old is not text."; "_new is not text."}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* USE NAMESPACE "Text" */ | |
| AfterDelimeter = LAMBDA(_text, delimiter, [_index], | |
| LET( | |
| Help, TRIM(TEXTSPLIT( | |
| "DESCRIPTION:->Returns the part of _text after the given delimiter. If _index is omitted, returns after the first delimiter\nVERSION:->1.0\nPARAMETERS:->_text as text, delimiter as text, _index as number (optional)", | |
| "->", | |
| "\n" | |
| )), | |
| ErrorMessages, {"_text is not text."; "delimiter is not text."; "_index is not a number."}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* USE NAMESPACE "Record" */ | |
| Field = LAMBDA( | |
| // Parameter Declarations | |
| _record, | |
| _field, | |
| LET( | |
| // Help | |
| Help, TRIM( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* USE NAMESPACE "Table" */ | |
| Item = LAMBDA(_table, _index, | |
| LET( | |
| // Help | |
| Help, TRIM(TEXTSPLIT( | |
| "DESCRIPTION:->Returns the row at position _index from _table including the header row\nVERSION:->1.0\nPARAMETERS:->_table as table, _index as number", | |
| "->", | |
| "\n" | |
| )), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* USE NAMESPACE "List" */ | |
| Accumulate = LAMBDA(_list, _seed, _accumulator, REDUCE(_seed, _list, _accumulator)); | |
| AllTrue = LAMBDA(_list, AND(_list)); | |
| AnyTrue = LAMBDA(_list, OR(_list)); | |
| Average = LAMBDA(_list, AVERAGE(_list)); | |
| Contains = LAMBDA(_list, _value, [_equationCriteria], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* USE NAMESPACE "ARR" */ | |
| REPLACENTH = LAMBDA(array, xnew, trow, [tcol], | |
| LET( | |
| // Help | |
| Help, TRIM(TEXTSPLIT( | |
| "DESCRIPTION:->Replaces the element in array at row trow and column tcol with xnew. If tcol is omitted it defaults to 1.\nVERSION:->1.0\nPARAMETERS:->array as array, xnew as any, trow as number, tcol as number (optional)", | |
| "->", | |
| "\n" | |
| )), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Template = LAMBDA( | |
| // Parameter Declarations | |
| x, | |
| LET( | |
| // Help | |
| // Error Messages | |
| // Check Inputs | |
| // Procedure | |
| // Handle Error | |
| // Return Result |