Added Enumerator toy

I added a the toy method to Enumerator. To prevent duplicate code, I moved the whole logic from Array to Enumerator.