hellow guys! which do you prefer? :slightly_smili...
# codingconventions
o
hellow guys! which do you prefer? 🙂 1.
Copy code
fun showLoading() {
        items.values.forEach {
            when (it) {
                is TransactionsListFragment -> it.showLoading()
                is TransactionsCalendarFragment -> it.showLoading()
            }
        }
    }
2.
Copy code
fun showLoading() =
        items.values.forEach {
            when (it) {
                is TransactionsListFragment -> it.showLoading()
                is TransactionsCalendarFragment -> it.showLoading()
            }
        }
2️⃣ 3
3️⃣ 1
1️⃣ 16