here's the shortend version: ``` private inline fu...
# announcements
k
here's the shortend version:
Copy code
private inline fun firebase(event: String, block: BundleBuilder.() -> Unit) {
    firebase.logEvent(event, BundleBuilder().apply(block).bundle)
}

private class BundleBuilder(val bundle: Bundle = Bundle()) {
    operator fun String.invoke(value: String?) = bundle.putString(this, value)
}