You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
π 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.
The text was updated successfully, but these errors were encountered:
π 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.
The text was updated successfully, but these errors were encountered: