mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-08 04:05:30 -05:00
compat 4.03
This commit is contained in:
parent
84173382db
commit
d985019fe1
1 changed files with 3 additions and 3 deletions
|
|
@ -294,7 +294,7 @@ eq
|
||||||
(Ok (("!this is the text between!", "LOL"), " and a lot of other stuff"))
|
(Ok (("!this is the text between!", "LOL"), " and a lot of other stuff"))
|
||||||
(parse_string
|
(parse_string
|
||||||
(string "COUCOU"
|
(string "COUCOU"
|
||||||
*> let* slice, x = take_until_success (string "LOL") in
|
*> ( take_until_success (string "LOL") >>= fun (slice, x) ->
|
||||||
let+ rest = take_if (fun _ -> true) <* eoi in
|
take_if (fun _ -> true) <* eoi >|= fun rest ->
|
||||||
(Slice.to_string slice, x), Slice.to_string rest)
|
(Slice.to_string slice, x), Slice.to_string rest ))
|
||||||
"COUCOU!this is the text between!LOL and a lot of other stuff")
|
"COUCOU!this is the text between!LOL and a lot of other stuff")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue