mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 11:15:31 -05:00
update readme
This commit is contained in:
parent
cb551b33e6
commit
157cce9f6e
1 changed files with 12 additions and 0 deletions
12
README.md
12
README.md
|
|
@ -60,6 +60,18 @@ don't have additional dependencies nor build complications (and it may enable
|
||||||
more inlining). Since modules have a friendly license and are mostly
|
more inlining). Since modules have a friendly license and are mostly
|
||||||
independent, both options are easy.
|
independent, both options are easy.
|
||||||
|
|
||||||
|
In a toplevel, using ocamlfind:
|
||||||
|
|
||||||
|
```ocaml
|
||||||
|
# #use "topfind";;
|
||||||
|
# #require "containers";;
|
||||||
|
# CCList.flat_map;;
|
||||||
|
- : ('a -> 'b list) -> 'a list -> 'b list = <fun>
|
||||||
|
# open Containers;; (* optional *)
|
||||||
|
# List.flat_map ;;
|
||||||
|
- : ('a -> 'b list) -> 'a list -> 'b list = <fun>
|
||||||
|
```
|
||||||
|
|
||||||
If you have comments, requests, or bugfixes, please share them! :-)
|
If you have comments, requests, or bugfixes, please share them! :-)
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue