budlang icon indicating copy to clipboard operation
budlang copied to clipboard

Add for each loops

Open ecton opened this issue 3 years ago • 0 comments

The only hangup on implementing this is making it work with Map types. Ideally a for each loop over a map would yield a key and value, but we don't have a clean way for a function to return multiple values.

Early on in the design, the virtual machine allowed a function to return more than one value and for the returning function to receive more than one return value. It might be worth re-exploring that.

ecton avatar Nov 18 '22 05:11 ecton