``` ....... .map { myThing -> { appDatabaseM...
# getting-started
a
Copy code
.......
.map { myThing -> {
   appDatabaseManager.update(myThing)
   myThing
}}
.....
I’m new to kotlin and was just pulling my hair that why this code didn’t function properly and it turns out that I have to remove the brackets after the variable declaration as this returns a func reference
() -> MyThing
😅
👍 1