Skip to main content

string

Chainable Ops

string-notEqual

Determines inequality of two values.

Argument
lhsThe first value to compare.
rhsThe second value to compare.

Return Value

Whether the two values are not equal.

string-add

Concatenates two strings

Argument
lhsThe first string
rhsThe second string

Return Value

The concatenated string

string-equal

Determines equality of two values.

Argument
lhsThe first value to compare.
rhsThe second value to compare.

Return Value

Whether the two values are equal.

string-append

Appends a suffix to a string

Argument
strThe string to append to
suffixThe suffix to append

Return Value

The string with the suffix appended

string-contains

Checks if a string contains a substring

Argument
strThe string to check
subThe substring to check for

Return Value

Whether the string contains the substring

string-endsWith

Checks if a string ends with a suffix

Argument
strThe string to check
suffixThe suffix to check for

Return Value

Whether the string ends with the suffix

string-findAll

Finds all occurrences of a substring in a string

Argument
strThe string to find occurrences of the substring in
subThe substring to find

Return Value

The list of indices of the substring in the string

string-isAlnum

Checks if a string is alphanumeric

Argument
strThe string to check

Return Value

Whether the string is alphanumeric

string-isAlpha

Checks if a string is alphabetic

Argument
strThe string to check

Return Value

Whether the string is alphabetic

string-isNumeric

Checks if a string is numeric

Argument
strThe string to check

Return Value

Whether the string is numeric

string-lStrip

Strip leading whitespace

Argument
strThe string to strip.

Return Value

The stripped string.

string-len

Returns the length of a string

Argument
strThe string to check

Return Value

The length of the string

string-lower

Converts a string to lowercase

Argument
strThe string to convert to lowercase

Return Value

The lowercase string

string-partition

Partitions a string into a list of the strings

Argument
strThe string to split
sepThe separator to split on

Return Value

A list of strings: the string before the separator, the separator, and the string after the separator

string-prepend

Prepends a prefix to a string

Argument
strThe string to prepend to
prefixThe prefix to prepend

Return Value

The string with the prefix prepended

string-rStrip

Strip trailing whitespace

Argument
strThe string to strip.

Return Value

The stripped string.

string-replace

Replaces all occurrences of a substring in a string

Argument
strThe string to replace contents of
subThe substring to replace
newSubThe substring to replace the old substring with

Return Value

The string with the replacements

string-slice

Slices a string into a substring based on beginning and end indices

Argument
strThe string to slice
beginThe beginning index of the substring
endThe ending index of the substring

Return Value

The substring

string-split

Splits a string into a list of strings

Argument
strThe string to split
sepThe separator to split on

Return Value

The list of strings

string-startsWith

Checks if a string starts with a prefix

Argument
strThe string to check
prefixThe prefix to check for

Return Value

Whether the string starts with the prefix

string-strip

Strip whitespace from both ends of a string.

Argument
strThe string to strip.

Return Value

The stripped string.

string-upper

Converts a string to uppercase

Argument
strThe string to convert to uppercase

Return Value

The uppercase string

string-levenshtein

Calculates the Levenshtein distance between two strings.

Argument
str1The first string.
str2The second string.

Return Value

The Levenshtein distance between the two strings.

List Ops

string-notEqual

Determines inequality of two values.

Argument
lhsThe first value to compare.
rhsThe second value to compare.

Return Value

Whether the two values are not equal.

string-add

Concatenates two strings

Argument
lhsThe first string
rhsThe second string

Return Value

The concatenated string

string-equal

Determines equality of two values.

Argument
lhsThe first value to compare.
rhsThe second value to compare.

Return Value

Whether the two values are equal.

string-append

Appends a suffix to a string

Argument
strThe string to append to
suffixThe suffix to append

Return Value

The string with the suffix appended

string-contains

Checks if a string contains a substring

Argument
strThe string to check
subThe substring to check for

Return Value

Whether the string contains the substring

string-endsWith

Checks if a string ends with a suffix

Argument
strThe string to check
suffixThe suffix to check for

Return Value

Whether the string ends with the suffix

string-findAll

Finds all occurrences of a substring in a string

Argument
strThe string to find occurrences of the substring in
subThe substring to find

Return Value

The list of indices of the substring in the string

string-isAlnum

Checks if a string is alphanumeric

Argument
strThe string to check

Return Value

Whether the string is alphanumeric

string-isAlpha

Checks if a string is alphabetic

Argument
strThe string to check

Return Value

Whether the string is alphabetic

string-isNumeric

Checks if a string is numeric

Argument
strThe string to check

Return Value

Whether the string is numeric

string-lStrip

Strip leading whitespace

Argument
strThe string to strip.

Return Value

The stripped string.

string-len

Returns the length of a string

Argument
strThe string to check

Return Value

The length of the string

string-lower

Converts a string to lowercase

Argument
strThe string to convert to lowercase

Return Value

The lowercase string

string-partition

Partitions a string into a list of the strings

Argument
strThe string to split
sepThe separator to split on

Return Value

A list of strings: the string before the separator, the separator, and the string after the separator

string-prepend

Prepends a prefix to a string

Argument
strThe string to prepend to
prefixThe prefix to prepend

Return Value

The string with the prefix prepended

string-rStrip

Strip trailing whitespace

Argument
strThe string to strip.

Return Value

The stripped string.

string-replace

Replaces all occurrences of a substring in a string

Argument
strThe string to replace contents of
subThe substring to replace
newSubThe substring to replace the old substring with

Return Value

The string with the replacements

string-slice

Slices a string into a substring based on beginning and end indices

Argument
strThe string to slice
beginThe beginning index of the substring
endThe ending index of the substring

Return Value

The substring

string-split

Splits a string into a list of strings

Argument
strThe string to split
sepThe separator to split on

Return Value

The list of strings

string-startsWith

Checks if a string starts with a prefix

Argument
strThe string to check
prefixThe prefix to check for

Return Value

Whether the string starts with the prefix

string-strip

Strip whitespace from both ends of a string.

Argument
strThe string to strip.

Return Value

The stripped string.

string-upper

Converts a string to uppercase

Argument
strThe string to convert to uppercase

Return Value

The uppercase string

string-levenshtein

Calculates the Levenshtein distance between two strings.

Argument
str1The first string.
str2The second string.

Return Value

The Levenshtein distance between the two strings.

Was this page helpful?👍👎