September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
|
|
@ -1,14 +0,0 @@
|
|||
let split_char sep str =
|
||||
let string_index_from i =
|
||||
try Some (String.index_from str i sep)
|
||||
with Not_found -> None
|
||||
in
|
||||
let rec aux i acc = match string_index_from i with
|
||||
| Some i' ->
|
||||
let w = String.sub str i (i' - i) in
|
||||
aux (succ i') (w::acc)
|
||||
| None ->
|
||||
let w = String.sub str i (String.length str - i) in
|
||||
List.rev (w::acc)
|
||||
in
|
||||
aux 0 []
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
#load "str.cma";;
|
||||
let split_str sep str =
|
||||
Str.split (Str.regexp_string sep) str
|
||||
|
|
@ -1 +0,0 @@
|
|||
String.concat sep strings
|
||||
Loading…
Add table
Add a link
Reference in a new issue