In the contract How do I execute a for loop like ETH

Hello, everyone
When Referring to the ETH contract code, I found that there was a for loop in the ETH, but not in AE. How should I do the loop operation in AE?

@hanssv.chain You know what?

Loops are solved by recursion in a functional language…

For convenience there is the List standard library: https://github.com/aeternity/aesophia/blob/lima/docs/sophia_stdlib.md#List

1 Like