Skip to content
CCPEDIAby Unity Nodes
App Development

Making top level definitions in REPL

2 posts371 views2 likesLast activity Sep 2020

  1. bernhardOP 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?

  2. cocreature 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.