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

A parameterless persistentHashMapOf() #67

Closed
chuckjaz opened this issue Jan 9, 2020 · 1 comment
Closed

A parameterless persistentHashMapOf() #67

chuckjaz opened this issue Jan 9, 2020 · 1 comment
Assignees

Comments

@chuckjaz
Copy link

chuckjaz commented Jan 9, 2020

FEATURE REQUEST

A parameterless version of persistentHashMapOf() to avoid creating a useless builder and varargs parameter when the code is just going to create its own builder anyway.

fun <K, V> persistentHashMapOf(): PersistentMap<K, V> = PersistentHashMap.emptyOf<K,V>()

Parameter-less versions of persistentSetOf and persistentListOf() already exist. It seems odd that this is missing.

@qurbonzoda
Copy link
Contributor

The functions was added in 0.3.2 version of the library.
Thank you for your feedback!

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

No branches or pull requests

2 participants