<kotlin indexOf performance> I currently build an ...
# stackoverflow
u
kotlin indexOf performance I currently build an instagram like app. So there are posts in home page,which each post has likes. Likes array contains User data classes that has fields like, name,username,age and so on. data class User( val id:String, val username: String?, val fullname: String?, val email: String?, val bio: String? } In recycler view adapter, i am checking if, user i logged in exists in likes array, if exists, i change the like icon as liked. But i think indexOf function checks all...