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

1.1 KiB

EXTENSION

Array

Methods

levenshteinDistance(to:)

Calculate the Levenshtein distance to another array.

  • Parameter target: The target array.
  • Returns: The Levenshtein distance.

getTransformations(to:)

Get the transformations needed to transform the array into the target array.

  • Parameter target: The target array.
  • Returns: The transformations.

transform(to:functions:)

Call every transformation step needed to transform the array into the target array.

  • Parameters:
    • target: The target array.
    • functions: The transformation functions.

identifiableLevenshteinDistance(to:)

Calculate the Levenshtein distance to another array.

  • Parameter target: The target array.
  • Returns: The Levenshtein distance.

identifiableGetTransformations(to:)

Get the transformations needed to transform the array into the target array.

  • Parameter target: The target array.
  • Returns: The transformations.

identifiableTransform(to:functions:)

Call every transformation step needed to transform the array into the target array.

  • Parameters:
    • target: The target array.
    • functions: The transformation functions.