We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ace9119 commit d2d7ea4Copy full SHA for d2d7ea4
Algorithms/Strings/HasPrefix.fs
@@ -0,0 +1,7 @@
1
+module HasPrefix =
2
+ /// <summary>
3
+ /// Reports string has specified prefix or not.
4
+ /// </summary>
5
+ let HasPrefix (s: string, prefix: string): bool =
6
+ s.Length >= prefix.Length && s.Substring(0, prefix.Length) = prefix
7
+
0 commit comments