John Whitington
fc101ae849
Rename tools/unlabel --> tools/sync_stdlib_docs
2020-09-10 19:17:43 +01:00
John Whitington
a5ed794b4c
Check-typo and indenting all done
2020-07-31 14:24:50 +01:00
John Whitington
7f922569c0
Replacing {!X.y} in doc comments with {!y}
2020-07-27 13:39:12 +01:00
John Whitington
1d19609646
Match documentation and labels
2020-07-19 13:34:25 +01:00
John Whitington
e8e5b7e73f
Make hashtbl.mli / set.mli / map.mli from labeled
2020-07-18 12:03:03 +01:00
Sébastien Briais
f52fdc2068
Define to_rev_seq in Set and Map module ( #9075 )
2020-05-15 17:38:45 +02:00
Gabriel Scherer
1cd6e4451f
Map.filter_map and Set.filter_map
2020-03-31 15:01:41 +02:00
Daniel Bünzli
acb0e91ac6
Stdlib doc: harmonize heading levels again. ( #2142 )
2018-11-08 17:33:55 +01:00
Gabriel Scherer
f8f04e771d
clarify Set.diff documentation ( #2119 )
...
fixes [MPR#7868](https://caml.inria.fr/mantis/view.php?id=7868 )
2018-10-26 15:30:16 +02:00
Jérémie Dimino
9124ab82d1
Deprecate Pervasives ( #1605 )
...
- inline Pervasives in Stdlib and re-add Pervasives as a deprecated
module that aliases all elements of Stdlib except the stdlib modules.
- remove special case for Stdlib.Pervasives in printtyp.ml
2018-08-27 12:42:14 +01:00
Nicolás Ojeda Bär
5289ee6889
Set.disjoint: add @since annotation
2018-08-16 22:09:11 +05:30
Nicolás Ojeda Bär
8ec445eb1c
Add Set.Make(_).disjoint
2018-08-10 16:23:15 +02:00
Simon Cruanes
df80f34a92
Stdlib functional iterators ( #1002 )
...
* add `Seq` module, expose iterator conversions in most containers
* small typo
* typo
* change order of arguments for `{Map,Set}.add_seq`
* watch for max string length in `Bytes.of_seq`
* wip: make it build again
* Fix dependency
Sys needs to be linked before Bytes in stdlib.
* Update threads/stdlib.ml
* Update stdlib_no_prefixed/.depend
* fix inconsistencies with label modules
* update testsuite to work with seq
* update change file
* small change in `Hashtbl.to_seq`, capturing only the underlying array
* add some documentation to seq.mli
* revert to good ol' module type names for hashtables
* fix test
* change style of comments in seq.mli
* follow some demands in review of GPR #1002
* some fixes for #1002
* add Seq-related functions to Ephemeron
* add some comments on `Hashtbl.of_seq`
* add more tests for `Hashtbl.{to,of}_seq`
* fix bug in `Ephemeron.to_seq`
* Update Changes
2018-03-16 18:25:10 +01:00
octachron
c4d49c89c1
Add cross-reference detected by ocamldoc
2017-02-01 20:20:02 +01:00
Gabriel de Perthuis
bf4b142586
[Stdlib] Implement find_first, find_last for maps and sets ( #869 )
...
Finds the first/last binding where the key satisfies a monotonic
predicate.
Addresses #665 , supersedes #868 .
Thanks @alainfrisch for the idea and most of the implementation.
2016-11-12 22:47:46 +01:00
Alain Frisch
69263a9893
Option-returning variants of stdlib functions ( #885 )
...
Provide an xxx_opt alternative for functions raising Not_found
and many instances of Failure/Invalid_arg.
The only exception is the rarely used Buffer.add_substitute, where
the [Not_found] can really be interpreted as an error condition.
Most new functions are implemented directly (instead of wrapping the
raising version). This is for performance reasons and also to avoid
destroying the stacktrace (if the function is used in an exception
handler). One could instead implement the raising versions on top of
the new functions, but there might be a small penalty.
2016-11-07 16:11:35 +00:00
Olivier Andrieu
df4469f4b1
add @since ocamldoc tag for Set.map from GPR#553 ( #800 )
2016-09-16 10:24:41 +02:00
Gabriel Scherer
a55b520a58
PR#6279: add Set.map
2016-04-25 08:47:16 -04:00
Alain Frisch
8557a86477
Also enable more warnings in stdlib/ and fix them.
2016-03-15 22:47:26 +01:00
Damien Doligez
5401ce8473
Update headers for the new license.
...
Remains to be done: remove all headers in testsuite/tests.
2016-02-18 16:59:16 +01:00
Alain Frisch
b94c4b840f
GPR#174: ensure that Set.remove and Set.filter return the original set (physically) when no change is required. Also avoid allocations in this case. Similar to what had been done for Set.add in #6645 .
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16080 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-05-05 16:08:00 +00:00
Alain Frisch
30bb2c39d8
#6645 : Set.add returns the original set when the element to be added is already in it, and document this invariant. Also guarantee that in that case, Set.add doesn't allocate (but do not document it for now).
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15966 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-03-26 09:28:59 +00:00
Gabriel Scherer
c03e155885
stdlib/map: Add some usage exemple in the documentation.
...
(Patch by Nicolas Braud-Santoni)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14730 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-05-03 13:24:29 +00:00
Alain Frisch
edb771d22b
#4986 . Add two common operations: List.sort_uniq (more efficient that sorting then removing duplicates) and Set.of_list (more efficient than folding Set.add over the list).
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13876 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-07-09 11:01:42 +00:00
Damien Doligez
90dd916144
typo
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13318 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-02-26 12:46:09 +00:00
Alain Frisch
fe4528d13a
Doc.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13213 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-08 09:32:49 +00:00
Alain Frisch
f369e064d0
Add ocamldoc 'since' tag to Set.find.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13212 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-08 09:02:33 +00:00
Alain Frisch
706f815450
#5864 : add a find operation to Set.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13211 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-08 09:01:02 +00:00
Damien Doligez
def31744f9
remove all $Id keywords
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13013 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-10-15 17:50:56 +00:00
Damien Doligez
3b507dd1aa
renaming of Objective Caml to OCaml and cleanup of copyright headers
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11156 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-07-27 14:17:02 +00:00
Damien Doligez
841e1e9a28
espaces
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6974 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2005-07-21 14:52:45 +00:00
Xavier Leroy
0d71c73c37
Meilleure implementation de Set.compare. Revu doc de Set.split.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6251 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-04-23 10:01:54 +00:00
Basile Starynkevitch
4041c97364
added split in the result of Set.Make
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6202 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-04-14 11:10:22 +00:00
Xavier Leroy
92f6138607
Specifier l'ordre de calcul pour les fonctions map et iter (PR#1947)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6114 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-02-14 16:52:22 +00:00
Xavier Leroy
14b6ff4507
Doc compare
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5969 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-11-21 18:22:50 +00:00
Damien Doligez
7ded3641b2
meilleure doc de la fonction de comparaison
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5870 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-10-16 13:05:34 +00:00
Damien Doligez
a2d1de28e9
typo
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4479 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-03-06 13:33:25 +00:00
Xavier Leroy
e9cc0ac2ff
Nettoyage commentaires de doc
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4152 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-12-10 12:33:55 +00:00
Xavier Leroy
7501784c80
MAJ en-tetes pour mentionner la 'special exception' sur la LGPL
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4144 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-12-07 13:41:02 +00:00
Maxence Guesdon
69d5ded204
correction comments
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4096 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-12-04 15:42:07 +00:00
Maxence Guesdon
ef3d334d4a
commentaires après
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4083 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-12-03 22:16:03 +00:00
Maxence Guesdon
241f51d429
Modification emplacements et syntaxe commentaires pour OCamldoc.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3927 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-10-26 23:33:00 +00:00
Jacques Garrigue
ea299bbbc1
passage aux labels stricts
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3696 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-09-06 08:52:32 +00:00
Xavier Leroy
63f7a020fe
Ajout iterateurs for_all, exists, filter, partition
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3073 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-04-13 12:16:26 +00:00
Jacques Garrigue
19fede7478
passage aux labels legers
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3024 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-04-03 01:57:52 +00:00
Jacques Garrigue
9ac4b7df38
new labels in List, Set, Unix and ThreadUnix
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2775 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-02-01 06:52:39 +00:00
Jacques Garrigue
c7168d2346
changed some labels
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2675 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-12-07 15:01:27 +00:00
Jacques Garrigue
296fc05470
Merge olabl branch
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2651 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-11-30 16:07:38 +00:00
Xavier Leroy
cc0f32b054
Changement de la licence
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2553 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-11-17 18:59:06 +00:00
Xavier Leroy
c1eec2c119
Ajout de Set.singleton, optimisation de Set.union
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2006 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1998-07-02 09:48:14 +00:00