Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Making top level definitions in REPLForum ↗

Making top level definitions in REPL

App Development2 posts365 views2 likesLast activity Sep 2020
BE
bernhardOP
Sep 2020 1

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?

CO
cocreature
Sep 2020 1

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

← Back to Discussions