summaryrefslogtreecommitdiff
path: root/stdlib/ephemeron.ml
Commit message (Collapse)AuthorAgeFilesLines
* Fix Hashtbl.Make.of_seq creating randomized tablesDavid Allsopp2019-03-291-0/+12
| | | | | Book-keeping error only - although it does potentially initialise the PRNG unnecessarily.
* Stdlib functional iterators (#1002)Simon Cruanes2018-03-161-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Option-returning variants of stdlib functions (#885)Alain Frisch2016-11-071-0/+25
| | | | | | | | | | | | | 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.
* Also enable more warnings in stdlib/ and fix them.Alain Frisch2016-03-151-10/+10
|
* Update headers for the new license.Damien Doligez2016-02-181-12/+14
| | | | Remains to be done: remove all headers in testsuite/tests.
* Typos - ephemeronsFourchaux2016-02-051-8/+8
|
* Fix creation of Ephemeron.K2François Bobot2016-01-251-1/+1
| | | | | And use the tests for the classic hashtables for testing the (non-weak) behavior of weak hashtables.
* Fix mantis 5349, semantic of `replace`François Bobot2016-01-251-19/+25
| | | | | The closed bug report is about classic hashtable but it is also applicable for weak hashtable (thanks @signoles for the heads up)
* Fix bad cleaning of ephemeronsFrançois Bobot2016-01-251-30/+65
| | | | size not exact and infinite resizing
* [Stdlib] Rename Obj.Ephemeron.eph in .tFrançois Bobot2016-01-251-3/+3
| | | | An ugly obj_t is needed for the shadowing of Obj.t
* [Stdlib] Ephemeron: add the module in the stdlibFrançois Bobot2016-01-251-0/+573