Idle pondering from a Scala learner perhaps, but ... in my tinkerings I\'ve written the following:
( n.child.size > 0 ) && ( n.child.filter( ! _.isIns
"with" is, of course, a reserved word in Scala, so let's call it "let", from the similar binding form in Lisp and Haskell. Turns out "let" is just a backwards way of writing function application.
def let[A,B](param:A)(body: A=>B):B = body(param)
let(n.child){list=> ...}
If the bound variable is used only once, you could of course use the anonymous function form, but that defeats the purpose.