Formulas & functions
How a function works, with worked examples you can paste.
- Link String to Function in Python: How-ToYes, you can link a string to a function in Python, and the most direct way is to use a dictionary that…
- JavaScript Return String From Function: How-To & ExamplesTo return a string from a JavaScript function, use the return keyword followed by the string value or a variable holding a…
- Split Line Function in Python: A Complete GuideThe split() function in Python is a string method that divides a string into a list of substrings based on a specified…
- X++ String Runtime Functions: How They Work and When to Use ThemX++ string runtime functions are built-in methods that let you manipulate, compare, and inspect text values at runtime in Dynamics 365 Finance…
- Python String Functions: GeeksforGeeks GuideThe most commonly used Python string functions are len(), lower(), upper(), strip(), split(), join(), replace(), and find() — all of which are…
- Python split() Function: How It Works with ExamplesThe split() method in Python divides a string into a list of substrings based on a specified separator, returning that list. By…
- String Functions in Java: GeeksforGeeks GuideString functions in Java, as covered on GeeksforGeeks, are built-in methods of the String class that let you manipulate, inspect, and transform…
- Snowflake LENGTH Function: Count String CharactersIn Snowflake, use LENGTH(string) to return the number of characters in a string; LEN(string) is an alias. For example, SELECT LENGTH('Snowflake'); returns…
- Function x in Math: Meaning, Notation, and ExamplesA function is a rule that assigns exactly one output to each allowed input. In the notation f(x), x is the input,…
- PySpark String Functions: Examples and Common UsesPySpark string functions are built-in column operations in pyspark.sql.functions for cleaning, transforming, searching, and parsing text in a Spark DataFrame. Use them…
- Python String Functions: Syntax and ExamplesPython string functions are mostly methods called on a string, such as text.lower(), text.replace(old, new), and text.split(sep); built-in functions such as len(text)…
- SQL Server REPLACE Function: Syntax and ExamplesSQL Server’s REPLACE(string_expression, string_pattern, string_replacement) function replaces every occurrence of one string with another and returns the revised string. For example, SELECT…
- Arcade Right Function: Syntax and ExamplesIn ArcGIS Arcade, Right(value, numChars) returns a text value containing the specified number of characters from the end of a string. For…
- SQL Split String by Delimiter: Functions by DatabaseThere is no single SQL function for splitting a string by a delimiter across all databases. Use STRING_SPLIT in SQL Server, string_to_array…
- Java String Class Functions: Key Methods and ExamplesJava’s String class provides methods for inspecting, comparing, searching, extracting, and transforming text. Commonly used methods include length(), charAt(), equals(), contains(), substring(),…
- JavaScript Functions Within Functions: How They WorkYes. JavaScript lets you define a function inside another function; the inner function can use variables from the outer function, and it…
- Java String Functions: Methods, Examples, and UsageIn Java, “string functions” usually means methods of the String class, which let a program inspect, compare, search, and create text. For…
- Function in CodeHS: Meaning, Syntax, and ExamplesA function in CodeHS is a named, reusable block of code that performs a task. It can receive information through parameters and,…
- PostgreSQL String Functions: Examples and Practical UsesPostgreSQL string functions let you join, search, extract, clean, split, and format text values in SQL. Common starting points include concat or…
- Oracle PL/SQL String Functions: A Practical GuideOracle PL/SQL string functions are built-in routines for measuring, searching, extracting, combining, and changing text. Common choices include LENGTH, SUBSTR, INSTR, REPLACE,…
- Sort a String in Java: Methods and ExamplesJava has no String.sort() method. To sort the characters in one string, convert it to a char[], call Arrays.sort(), and create a…
- C++ String Length: Choosing the Right Function for TextFor a C++ std::string, call length() or size(); they return the same number. For a null-terminated C-style character string, use std::strlen() from…
- Python Functions: How They Work and How to Write OnePython has no special built-in function named X: function names are chosen by the person writing the program. A Python function is…
- Python String Length: How len() Counts Characters in PythonUse Python’s built-in len() function to get a string’s length: len('hello') returns 5. It counts Unicode code points in the string—not necessarily…
- Python Function Argument as a String: How It WorksA Python function argument is a string when the value passed to the function is a Python str object, such as 'Ada'…
- Basic String Functions in Java: A Practical GuideJava’s basic string functions are methods on the String class for measuring, searching, comparing, extracting, changing, and formatting text. For example, call…
- Run a Function in PostgreSQL: Commands and ExamplesTo run a PostgreSQL function, call it in a SQL statement—usually with SELECT, as in SELECT public.add_numbers(4, 7);. Replace the schema, function…
- PostgreSQL IF Statement in a Function: Syntax & ExamplesYes. PostgreSQL supports IF statements inside functions written in PL/pgSQL, its procedural language. Put the condition and branches between BEGIN and END,…
- C++ String Input Functions: cin, getline, and MoreIn C++, use std::cin >> text to read a whitespace-delimited word, and std::getline(std::cin, text) to read a whole line, including spaces. Choose…
- Split Lung Function Test: How It Measures Each LungA split lung function test estimates how much each lung contributes to breathing, rather than measuring the lungs only as a combined…