Can a FEEL function be recursive?

Would be really helpful when walking a context.

{
  "walkContext": function(ctx)
    for e in get entries(ctx) return 
      context put({}, 
        e.key, 
        if e.value instance of context 
        then walkContext(e.value)
        else e.value
      ),
  "result": context merge(walkContext(input))
}

Hi @JoeWarner,

FEEL is not Turing Complete and is not supporting recursion. In practical cases it means that you have to “limit” your call stack somehow and use a for-each construct with a clear upper bound.

Cheers,

Simon