StringBuilder: append codepoint?

I have a scala.collection.mutable.StringBuilder and would like to append a code point, but I don’t see a suitable method for it.

On the other hand, there is a java.lang.StringBuilder.appendCodePoint.

Thoughts? Thanks!

This seems to work:

// sb is a StringBuilder
sb += Character.toChars(codePoint)

Thanks, that works. Wonder why there is no single method in Scala’s StringBuilder for that?

Maybe they just forgot to add the forward or didn’t consider it worth it.

It may be worth opening a PR to see what happens.