Making top level definitions in REPL
App Development2 posts363 views2 likesLast activity Sep 2020
BE
bernhardOP
Sep 2020I 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 2020At the moment no, let in DAML REPL is equivalent to let anywhere else in DAML so it’s not a top-level definition.