a62f844ab1
The comparison takes a constant amount of time, no matter whether the strings are equal, or even the same, or different. This one sentence had been added to DESCR out of nowhere.
9 lines
400 B
Text
9 lines
400 B
Text
This module provides one function, equals (not exported by default).
|
|
|
|
You should pass this function two strings of the same length. It will
|
|
return true if they are string-wise identical and false otherwise, just
|
|
like eq. However, comparing any two differing strings will take a fixed
|
|
amount of time, unlike eq.
|
|
|
|
NOTE: If the lengths of the strings are different, equals will return
|
|
false right away.
|