Is there a method which convert elements in String to BigInt?
scala
Solution
1234.toString.map(_.asDigit).map(BigInt(_))
Problem
This code : ``` 1234.toString.map(_.asDigit) ``` returns : ``` scala.collection.immutable.IndexedSeq[Int] = Vector(1, 2, 3, 4) ``` but I need a `scala.collection.immutable.IndexedSeq[BigInt]` There does not seem to be a method such as asBigInt which will convert the String characters to BigInt . How can this be done ?