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

Add primitive insert-item [issue #214] #1296

Merged
merged 4 commits into from
Apr 25, 2017
Merged

Conversation

brotatotes
Copy link
Contributor

No description provided.

@CLAassistant
Copy link

CLAassistant commented Jan 26, 2017

CLA assistant check
All committers have signed the CLA.

@@ -53,6 +53,8 @@ class LogoList private (private val v: Vector[AnyRef])
override def reverse = new LogoList(v.reverse)
def replaceItem(index: Int, obj: AnyRef) =
new LogoList(v.updated(index, obj))
def insertItem(index: Int, obj: AnyRef, elt: AnyRef) =
new LogoList(v.slice(0, index) ++ Vector(elt) ++ v.slice(index, v.size))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would Vector#patch be helpful here?

@mrerrormessage
Copy link
Contributor

This looks good. There's a few tests still failing (not a bug, the tests just need to be updated). We'll look at the test failures together on Wednesday.

@mrerrormessage mrerrormessage merged commit 3ac3918 into hexy Apr 25, 2017
@mrerrormessage mrerrormessage deleted the add-primitive-insert-item branch April 25, 2017 16:59
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.

4 participants