Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
6
Task/String-matching/OCaml/string-matching-1.ocaml
Normal file
6
Task/String-matching/OCaml/string-matching-1.ocaml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
let match1 s1 s2 =
|
||||
let len1 = String.length s1
|
||||
and len2 = String.length s2 in
|
||||
if len1 < len2 then false else
|
||||
let sub = String.sub s1 0 len2 in
|
||||
(sub = s2)
|
||||
Loading…
Add table
Add a link
Reference in a new issue