Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement #reverse and implement Iterator to List #41

Merged
merged 4 commits into from
May 13, 2019

Conversation

moba1
Copy link
Collaborator

@moba1 moba1 commented May 12, 2019

Abstract

add #reverse method and implmenent Iterator to List.
#reverse method returns reversed value.

Example

#reverse

List[1,2,3].reverse == List[3,2,1]
# for empty list, return empty list
List[].reverse == List[]
# for list which has one element, return same list
List[1].reverse == List[1]

@moba1 moba1 requested a review from alex-lairan May 12, 2019 14:22
@moba1 moba1 assigned moba1 and unassigned moba1 May 12, 2019
@alex-lairan
Copy link
Owner

Some specs missing, I created a pull request to this branch :)

#42

@moba1
Copy link
Collaborator Author

moba1 commented May 13, 2019

@alex-lairan merged #42

@moba1 moba1 changed the title Implement #reverse to List Implement #reverse and implement Iterator to List May 13, 2019
@alex-lairan alex-lairan merged commit 96931c8 into master May 13, 2019
@alex-lairan
Copy link
Owner

So #41 merged :)

@moba1 moba1 deleted the add/impl-#reverse-to-list branch May 13, 2019 06:55
@alex-lairan alex-lairan mentioned this pull request May 21, 2019
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.

2 participants