Hello,I would like to know how do I match multiple variables to a regular expression.My idea is to match every f variables (f...) to an f in ((contract C ((T x) ...) ((T f)) ...) ... ).I am trying to implement a core language for smart contracts in Racket, but I need to have as pre condition in my reduction rules that the f is a function in one of the contracts.Thank you! :)
Hello,
Yes, my idea is to check the type of the parameters. I still have to add the types to my code, but I was trying to see if I could do it without them (just pattern matching), as the functions of type f are in the declaration of the contract.
Thank you for your answer :D