@JanDvorak Nothing about "I'm looking for a way to convert between arbitrary bases in Scala, preferably in an efficient way ... I'd like to do it in a functional/scala way. I'm also happy to use a Java library as long as it really does have a method close to the above signature." isn't too broad, no matter how you look at it.
Why is your procedural code a problem and what issues is it causing? Why would you prefer a more "functional / scala" way? What functional approaches have you taken so far and what problems are you having with those approaches? — Jason C1 min ago
At times like these I appreciate the ability to downvote without comments. The asker's thought processes escape me. I can't comment-answer them even if I wanted to.
@Ahmad Only an age probably doesn't on Stack Overflow, but it does on smaller sites. And it doesn't make the votes entirely anonymous because a part of the identity is revealed.
@Ahmad Why are we repeating ourselves in chat when the question has already been answered? Also, why are we explaining basic principals of privacy to you? What is it that you want from us here right now?