Can I turn a method which takes an implicit parameter into a function?
trait Tx
def foo(bar: Any)(implicit tx: Tx) {}
foo _ // error: could not find implic
Implicits only work for methods. But you have to pass a function to withSelection. You can get around by wrapping the method in a function:
withSelection(a => b => deleteObjects(a)(b))
Its impossible to pass deleteObjects directly because foo _ does not work for a foo with an implicit parameter list defined.