`list.map { it.id }`
# android
e
list.map { it.id }
👍 1
p
If done this before too:
Copy code
inline fun <A, B> List<A>.mapBy(f: A.() -> B) =
    this.map(f)
So you can use it like this:
Copy code
list.mapBy { id }
But it's not standard so be careful 😄
e
wow this seems to read better than the standard version