Flex Gateway New
API Governance New
© Copyright 2023 Salesforce, Inc. All rights reserved.
Returns the Levenshtein distance (or edit distance) between two strings.
Introduced in DataWeave version 2.4.0.
The first string.
The second string.
This example shows how levenshteinDistance behaves with different strings.
import levenshteinDistance from dw::core::Strings
"kitten" levenshteinDistance "sitting"