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

FMultiMap<K, V> (Functional Multi-Map) #17

Open
kappsegla opened this issue Feb 4, 2025 · 0 comments Β· May be fixed by #60
Open

FMultiMap<K, V> (Functional Multi-Map) #17

kappsegla opened this issue Feb 4, 2025 · 0 comments Β· May be fixed by #60
Assignees
Labels
feature New feature or request

Comments

@kappsegla
Copy link
Contributor

πŸ“ Description
Implement FMultiMap, a persistent, immutable multi-map where a key is associated with multiple values.

βœ… Expected Behavior
put(K key, V value) β†’ Returns a new FMultiMap with value added under key.
remove(K key, V value) β†’ Returns a new FMultiMap without value under key.
get(K key) β†’ Returns a functional collection (e.g., FList) of values associated with key.
containsKey(K key) β†’ Returns true if key exists.
containsEntry(K key, V value) β†’ Returns true if value exists under key.
πŸ“Œ Requirements
Implement FMultiMap<K, V> as an immutable data structure.
Store values as functional collections (e.g., FList or FSet).
Write unit tests covering all methods.
Provide proper Javadocs for all public methods.

@kappsegla kappsegla added the feature New feature or request label Feb 4, 2025
@MarcGust MarcGust self-assigned this Feb 7, 2025
@MarcGust MarcGust linked a pull request Feb 13, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants