2024-01-01 11:57:11 +01:00

24 lines
595 B
Markdown

**EXTENSION**
# `String`
## Methods
### `levenshteinDistance(to:)`
Calculate the Levenshtein distance to another string.
- Parameter target: The target string.
- Returns: The Levenshtein distance.
### `getTransformations(to:)`
Get the transformations needed to transform the string into the target string.
- Parameter target: The target string.
- Returns: The transformations.
### `transform(to:functions:)`
Call every transformation step needed to transform the string into the target string.
- Parameters:
- target: The target string.
- functions: The transformation functions.