Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Iterator is missing the bare and separator-only variants of addString #401

Closed
Ichoran opened this issue Feb 3, 2018 · 0 comments
Closed

Comments

@Ichoran
Copy link
Contributor

Ichoran commented Feb 3, 2018

The old collections have addString in three variants on Iterator:

def addString(b: StringBuilder): StringBuilder
def addString(b: StringBuilder,sep: String): StringBuilder
def addString(b: StringBuilder,start: String,sep: String,end: String): StringBuilder

But the new Iterator has only the last variant.

It should get the other two. In particular,

xs.iterator().mkString == xs.iterator().addString(new StringBuilder).result

should compile and be true.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants