Skip to content

Additional operations for the MONO_HASH_TABLE interface #297

Closed

Description

@Skyb0rg007

Description

The hash table in the SML/NJ library is missing some operations that would be useful.

signature MONO_HASH_TABLE = sig
  (* ... *)
  (* Same as those in ORD_MAP *)
  val insertWith : ('a * 'a -> 'a) -> 'a hash_table -> Key.hash_key * 'a -> unit
  val findAndRemove : 'a hash_table -> Key.hash_key -> 'a option
end

Activity

  1. changed the title [-]Additional data structure operations[/-] [+]Additional operations for the `MONO_HASH_TABLE` interface[/+] on Feb 22, 2024
  2. self-assigned this
    on Feb 22, 2024
  3. added
    smlnj-libGeneral issue with the SML/NJ Library or the Util component
    fixed-in-110.99.5issues that will be fixed in the 110.99.5 version
    on Feb 22, 2024
  4. JohnReppy commented on Feb 26, 2024

    @JohnReppy
    Contributor

    These have been implemented for 110.99.5. Also added the functions to the HashTable structure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestfixed-in-110.99.5issues that will be fixed in the 110.99.5 versionsmlnj-libGeneral issue with the SML/NJ Library or the Util component

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions