Update README.md
This commit is contained in:
parent
15119d446e
commit
11d968eb04
1 changed files with 11 additions and 0 deletions
11
README.md
11
README.md
|
@ -5,3 +5,14 @@ Split a string to a list of strings of a character by the unicode codepoint.
|
|||
It requires module Uutf.
|
||||
|
||||
for documantations, see `docs`
|
||||
|
||||
## Example
|
||||
|
||||
```OCaml
|
||||
|
||||
let example = "m̄知 who you're." (*don't know who you are*) in
|
||||
|
||||
List.map (fun x -> print_string (x ^ ", ")) (StringCodepointSplitter.split_string_by_unicode_codepoint example);;
|
||||
|
||||
(*it will output : "m, ̄, 知, , w, h, o, , y, o, u, ', r, e, ., "*)
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue