Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A parameterless persistentHashMapOf() #67

@chuckjaz

Description

@chuckjaz

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions