Making top level definitions in REPL

I would like to define a recursive function in DAML REPL, but I get error

  Failure to process DAML program, this feature is not currently supported.
  Local variables defined recursively - recursion can only happen at the top level.

Is this currently possible?

1 Like

At the moment no, let in DAML REPL is equivalent to let anywhere else in DAML so it’s not a top-level definition.

1 Like