There is no explicit way to suppress output. However, you can easily achieve this by moving helper declarations into an external (or nested) object.
For example, the following:
object worksheet { object helper { val sqs = scen.rssis.toSeq.filter { case (ap,s) => s.exists(e => e.epoch > 1) }.sortBy { -_._2.length }.take(10) } helper.sqs foreach { case (api,s) => println(f"${scen.aps(api).ssid}%-10s ${s.length}% 5d") } }
source share