Hi there,
I am looking for a good and reliable library to read a string to construct a list of Integers, Doubles, Booleans, etc.
This library should be robust enough to handle faulty input from an inexperienced user.
Example:
input: "1, 2, 3, 4"
output List<Integer> [1, 2, 3, 4]
input: "1, 2, 3.6, 4"
output List<Double> [1.0, 2.0, 3.6, 4.0]
input: "true, true, false"
output List<Boolean> [true, true, false]
input: "[1, 2, 3]"
output List<Integer> [1, 2, 3]
input: "(1, 2, 3)"
output List<Integer> [1, 2, 3]
It would be really nice if such a library would already exist. Would save me an hour of writing it myself.
So yeah, if you know of any reliable library please let me know, I would really appreciate.
Thank you very much.