NEWTON
Asked
4 months ago
3
views
0
How would I go about passing a function as a parameter to a function. Ex map(function, array)
ㅤ This question was originally posted on Triality
0
You can use get_label_location() on the name of the function, and then pass this in and use it to call the function.
ie. let (function_name) = get_lable_location()
map(function_name, array)
This also works with storage variables since they are represented as functions.
ㅤ This answer was originally posted on Triality
answered
4 months ago
Cairo: How do write a log function in Cairo
Implicit Arguments in Cairo
Cairo: Getting function selector
Cairo Error calling function: Expected 'function_name' to be a struct. Found: 'function'.
Cairo: How do I initialize an array in cairo
Cairo: How to return true from a function?
Cairo Owner Only Fuctions
How can I prepare my Cairo lang project for an audit?
How to write a function in Cairo Lang (StarkNet)?
Is there something going on the testnet StarkNet?
If I want to use starkex do I have to deploy my custom starkex contracts?
how to return struct
Is there any simple way to concat two arrays with known sizes in Cairo?
A plan to get better visibility when a transaction got received but not placed into a block?