would something like this extension function be us...
# anko
k
would something like this extension function be useful so that we can do that without having to make a (not-so-pretty) call to
AnkoContext.create
ourselves? I also didn't know that was a thing 🙂
Copy code
inline fun <T, R> Context.anko(owner: T, block: AnkoContext<T>.() -> R): R {
  return with(AnkoContext.create(this, owner)) { block() }
}
👍 2