Is it possible to have DSL like: ```saver { val ...
# dsl
a
Is it possible to have DSL like:
Copy code
saver {
  val key1 = …
  val key2 = …
  save = { reference key1/2 },
  restore = { reference key1/2 }
}
specifically i would like to declare variables at the top level of the block but reference them in child lambdas
j
You can do whatever you want in a block, yes. It's just a regular lambda.