If there is no unique prefix (e.g. if a string is contained twice), then the length of the longest string is returned, i.e. if the return value is used in a call to substr, nothing happens e.g. substr(x, 1, supCount(x)) == x
supCount(x, prefix_l = 1)
Vector of strings
Starting prefix length, which is incremented in steps of 1 until all prefixes are unique (or maximum string length is reached)
Integer with minimal prefix length required
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.