Skip to content

adding and removing items from immutablelist #189

@fred-bowker

Description

@fred-bowker

The documentation for adding and removing items from immutablelist is unclear:

From the docs
Note: you need to import these operators from kotlinx.collections.immutable package in order for them to take the precedence over the ones from the standard library.

import kotlinx.collections.immutable.*

A lot of people don't use * in there imports and instead use the actual import, can the documentation be updated to reflect this.

Currently if i use + or - on an immutableList I get returned a List not an immutableList. it would be good if the documentation could be updated to show how I can use + or - to return an ImmutableList

Oh and thanks for creating this library :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    docDocumentation improvement task

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions