Skip to content

Add buildPersistentList { }, buildPersistentMap { }, buildPersistentSet { } to match the builders in kotlin stdlib #137

Open
@yogurtearl

Description

@yogurtearl

Add buildPersistentList { }, buildPersistentMap { }, buildPersistentSet { } to match the collection builders in kotlin stdlib

I would imagine it would look something like this:

fun <E> buildPersistentList(block: PersistentList.Builder<E>.() -> Unit): PersistentList<E> = 
    persistentListOf<E>().builder().apply(block).build() 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions