Professional Documents
Culture Documents
Your
Your
function with a return type of `Unit`. To fix this, you need to change the return type to `List<Any>`
and return the `items` list. Here's the corrected version:
```kotlin
selectorDataValue?.apply {
add(GREETINGS)
accountDetails?.accountList?.let {
items.addAll(it)
items.add(loadMore)
return items
```
Now, this function returns a list of items of type `Any` as intended. Adjust the code as needed based
on your requirements.