Add a ForEach() method on Array to be similar to TypeScript's ForEach thing. I have iterators with a burning passion. They are the polar opposite of usable. Instead of Iterators, C-Script will rely on ForEach oops on iterable structures.
This method (and the whole lot of them) will need to involve closures, lamdas, etc.
I might also want to support a const ForEach(const ) too as a compiler helper.
I will also be using std::invoke and std::forward.
Add a ForEach() method on Array to be similar to TypeScript's ForEach thing. I have iterators with a burning passion. They are the polar opposite of usable. Instead of Iterators, C-Script will rely on ForEach oops on iterable structures.
This method (and the whole lot of them) will need to involve closures, lamdas, etc.
I might also want to support a const ForEach(const ) too as a compiler helper.
I will also be using std::invoke and std::forward.