NEWTON
Asked
5 months ago
59
views
0
In the medium article about 1.0.0 this is shown as the syntax for the for loop
for x in iter { sum = sum + x; }``` That doesn't compile for me and loops are not mentioned on github release note. Will recursion still be necessary if they work as they do in other languages? Will it be possible to invoke functions from within the loops? _This question was originally posted on [StarkNet Discord](https://www.newton.so/view?tags=discord)_
Newton
asked
5 months ago
0
Accepted answer
that article says that cairo 1.0 isn't released yet
This answer was originally posted on StarkNet Discord
Newton
answered
5 months ago
How to make recursive function in Cairo Lang?
when to use tail call optimization in a cairo smartcontract
Can you explain Cairo v0.10 usage functions as expressions?
Cairo Lang / StarkNet: What are Revoked references? What is alloc_locals?
What is the inefficiency in this cairo code using alloc_locals
Cairo: Getting the zero address
What is the difference between tempvar/let in Cairo Lang? How to use allow_locals and local?
How do I interact with my Pathfinder node?
How to send tokens through StarkNet.py?
Cairo Error: 'range_check_ptr' cannot be used as an implicit return value. Consider using a 'with' statement.
Does cross-chain bridge produce its own block? Or it only verify the blocks from A/B chain?
how I could read a felt* from ap in Cairo lang?
Cairo: How can i approve erc20 and transfer in the same transaction?
when to use tail call optimization in a cairo smartcontract