length

fun length(first: String, second: String): Int

Return the length of the longest common subsequence (LCS) between strings first and second.

Parameters

first

the first string to compare.

second

the second string to compare.