Open rlwhitcomb opened 1 year ago
Would also need to update "typeof" to return "range" for this. Don't know how to handle "cast" or "~~" or other conversions.
Note that we already allow a range in "sumof" and "productof" so the same principles ought to apply.
The difficulty in this is that formal parameters are identified as a single variable name, while a range expression has from one to three variables. How would we refer to them inside the function????
Say I want to apply a function to a range of values:
Right now this is a syntax error because ranges (loop controls) are not allowed as parameters.