We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
buildPersistentList { }
buildPersistentMap { }
buildPersistentSet { }
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()
The text was updated successfully, but these errors were encountered:
I think it's a good idea but it should be inlined because otherwise it doesn't work at @Composable functions.
@Composable
Sorry, something went wrong.
Addressing the fix to #166, can you take a review?
Successfully merging a pull request may close this issue.
Add
buildPersistentList { }
,buildPersistentMap { }
,buildPersistentSet { }
to match the collection builders in kotlin stdlibI would imagine it would look something like this:
The text was updated successfully, but these errors were encountered: