scala.util.parsing.ast.Binders
trait ReturnAndDo

[source: `scala/util/parsing/ast/Binders.scala`]

`` `trait` ReturnAndDo[T]
  `extends` AnyRef

  Returns a given result, but executes the supplied closure before returning. (The effect of this closure does not influence the returned value.) TODO: move this to some utility object higher in the scala hierarchy?

Parameters
  `result -` the result to be returned
  `block -` code to be executed, purely for its side-effects

Method Summary
`abstract def` | andDo (block : => Unit) : T

Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized

Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf