Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional operations for the MONO_HASH_TABLE interface #297

Closed
Skyb0rg007 opened this issue Feb 22, 2024 · 1 comment
Closed

Additional operations for the MONO_HASH_TABLE interface #297

Skyb0rg007 opened this issue Feb 22, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request fixed-in-110.99.5 issues that will be fixed in the 110.99.5 version smlnj-lib

Comments

@Skyb0rg007
Copy link

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
@Skyb0rg007 Skyb0rg007 added the enhancement New feature or request label Feb 22, 2024
@JohnReppy JohnReppy changed the title Additional data structure operations Additional operations for the MONO_HASH_TABLE interface Feb 22, 2024
@JohnReppy JohnReppy self-assigned this Feb 22, 2024
@JohnReppy JohnReppy added smlnj-lib fixed-in-110.99.5 issues that will be fixed in the 110.99.5 version labels Feb 22, 2024
@JohnReppy
Copy link
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
Labels
enhancement New feature or request fixed-in-110.99.5 issues that will be fixed in the 110.99.5 version smlnj-lib
Projects
None yet
Development

No branches or pull requests

2 participants