Skip to content
This repository has been archived by the owner on Dec 3, 2020. It is now read-only.

Using delegate to map to array of Strings #36

Open
nibuen opened this issue Feb 14, 2018 · 0 comments
Open

Using delegate to map to array of Strings #36

nibuen opened this issue Feb 14, 2018 · 0 comments

Comments

@nibuen
Copy link

nibuen commented Feb 14, 2018

Would be nice to map directly to Array of Strings if possible. Might be missing how to do this, but this is my current way of doing so:

    private val _modes by obj.byNullableArray("MODES")
    val modes: Array<String>? by lazy {
        _modes?.map { it.string }?.toTypedArray()
    }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant