pilgr / Paper

Paper is a fast NoSQL-like storage for Java/Kotlin objects on Android with automatic schema migration support.
Apache License 2.0
2.35k stars 234 forks source link

Kotlin version of code? #175

Closed badoyg closed 4 years ago

badoyg commented 4 years ago

Can you please give me the Kotlin version of this code?

List retrieved = Paper.book().read("contacts"); retrieved.remove(address); Paper.book().write("contacts", retrieved);

AtjonTV commented 4 years ago

That code looks like Java to me, so no Kotlin version there ;D

(List x = is Java, val x = would be Kotlin)

Based on the Gradle build file, this project uses Kotlin 1.3.61.

pilgr commented 4 years ago

@badoyg sorry but this question is more about Kotlin usage and not the Paper lib. I'm closing the issue.