Skip to content

Conversation

tapan0007
Copy link
Contributor

@tapan0007 tapan0007 commented Jun 2, 2022

Note (before merging): We had to merge other group branches (sets, strings, destructuring, generics) to support iterators on these.

We have implemented the following for Milestone 2:

  1. Iterators for lists, strings, and sets.
  2. iter() and next() function for any iterable object - custom and inbuilt iterator.
  3. StopIteration error after iterable is exhausted.
  4. Enumerate() for lists of int (can be supported only for lists of int as these structures are not supported yet: [1, False], [1, [1]]).
  5. For loops on generic iterators.
  6. Destructuring in for loop head, (eg: for I,j in iterable). The iterable has to be a list type.

Please check our test cases for more information on these functionalities.

7bw and others added 29 commits June 1, 2022 14:45
@simranbarnwal
Copy link
Contributor

Note (before merging): We had to merge other group branches (sets, strings, destructuring, generics) to support iterators on these.

We have implemented the following for Milestone 2:

  1. Iterators for lists, strings, and sets.
  2. iter() and next() function for any iterable object - custom and inbuilt iterator.
  3. StopIteration error after iterable is exhausted.
  4. Enumerate() for lists of int (can be supported only for lists of int as these structures are not supported yet: [1, False], [1, [1]]).
  5. For loops on generic iterators.
  6. Destructuring in for loop head, (eg: for I,j in iterable). The iterable has to be a list type.

Please check our test cases for more information on these functionalities.

Three tests aren't working currently: generics: two typevars (due to interaction with strings), sets (update-list, firstitem() due to memory error)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.