mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
remove custom split_on_char post 4.04
This commit is contained in:
parent
01295a71fd
commit
6717d03a35
1 changed files with 5 additions and 0 deletions
|
|
@ -469,9 +469,14 @@ module Split = struct
|
|||
*)
|
||||
end
|
||||
|
||||
[@@@ifge 4.04]
|
||||
[@@@else_]
|
||||
|
||||
let split_on_char c s: _ list =
|
||||
Split.list_cpy ~drop:Split.no_drop ~by:(String.make 1 c) s
|
||||
|
||||
[@@@endif]
|
||||
|
||||
(*$= & ~printer:Q.Print.(list string)
|
||||
["a"; "few"; "words"; "from"; "our"; "sponsors"] \
|
||||
(split_on_char ' ' "a few words from our sponsors")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue