<div dir="auto">Hello,<div dir="auto"><br></div><div dir="auto">I was wondering what the best way was for tranforming a list of alphanumerical characters from main IO() such as:</div><div dir="auto"><br></div><div dir="auto">Enter String:</div><div dir="auto">A 101 E 182</div><div dir="auto"><br></div><div dir="auto">and tranforming it into an Int list of</div><div dir="auto"><br></div><div dir="auto">[0, 101, 4, 182]</div><div dir="auto"><br></div><div dir="auto">Which converting A and E to 0 and 4 is easy enough with toEnum/fromEnum and simple subtraction, and using read can convert to a [Char], but recognizing 101 as a single Int from a Char string in main, and getting both converted together as part of the same function, I'm a bit less sure of without resorting to much lower level imperative methods.</div><div dir="auto"><br></div><div dir="auto">Thanks in advance and thank you for your time.</div></div>