3 ms·
Because isdigit is checking only the first digit, and parse_integer is parsing not only that one, but the following digits as well
by raverbashing 11y ago
Because isdigit is checking only the first digit, and parse_integer is parsing not only that one, but the following digits as well
- victorNicollet 11y agoparse_integer stops reading when it encounters a non-digit character (in order to support reading multiple integers from the same string).