Passing `ScenarioBuilder` to `repeat(10) { ... } `?

Looking at the docs for repeat:

.repeat(times) {
  myChain
}

Given a ScenarioBuilder, how can I pass that into the repeat block?

Here’s what I tried, and its accompanying compile-time error:

class F extends Simulation {

val scen: ScenarioBuilder = ???

setUp(
repeat(10) {scen}.inject(atOnceUsers(1))
)

}

[error] found : io.gatling.core.structure.ScenarioBuilder

[error] required: io.gatling.core.structure.ChainBuilder

[error] repeat(10) {scen}.inject(atOnceUsers(1))

[error] ^

Thanks

A scenario is not a chain. It HAS a chain.