Avarel / Kaiper

Functional scripting in Java.
Apache License 2.0
10 stars 0 forks source link

Fixed Some Redundancies + Iterator Example #7

Closed Shengaero closed 7 years ago

Shengaero commented 7 years ago

This is mostly all I could do in one night (won't be able to do much else for a while do to school 😞)

I made an example of a pretty simple Iterator in examples, with next(), hasNext(), index, and length "members" (if you can even call them that, but whatever).

As a personal concept I implemented a looping function where the iterator resets after passing the backing array's last index.

Aside from the example I also fixed a duplicate static method in the Interpreter module.

Looking forward to more! 😃 👍