fn reorder_currency_code_and_value<E>(
first: String,
last: String,
) -> Result<(String, String), E>where
E: Error,
Expand description
Reorder the currency code and the value strings into the expected order. This is done to simplify the down-stream parsing logic as we will be able to assume that the first element of the pair is the string containing the currency code, and the second part of the pair is the portion of the string that contains the monetary value.
This function does not attempt to do anything beyond separating these two representations into a pair of strings.