ahegazy
07/18/2018, 11:05 AM.......
.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
😅