scientific_string/__init__.py
def strings_to_integers(strings: Iterable[str]) -> Iterable[int]:
    """
    Convert a list of strings to a list of integers.

    :param strings: a list of string
    :return: a list of converted integers

    .. doctest::

        >>> strings_to_integers(['1', '1.0', '-0.2'])
        [1, 1, ValueError('-0.2 cannot be converted to an integer')]
        >>> strings_to_integers(['1', '1.0', '-0.'])
        [1, 1, 0]
    """
    return strings_to_(strings, lambda x: int(float(x)) if float(x).is_integer() else ValueError(
        "{} cannot be converted to an integer".format(x)))

    Convert a list of strings to a list of integers.

    :param strings: a list of string
    :return: a list of converted integers

    .. doctest::

        >>> strings_to_integers(['1', '1.0', '-0.2'])
        [1, 1, ValueError('-0.2 cannot be converted to an integer')]
        >>> strings_to_integers(['1', '1.0', '-0.'])
        [1, 1, 0]
    
Convert a list of strings to a list of integers.
Convert a list of strings to a list of integers .
def strings_to_integers(strings: Iterable[str]) -> Iterable[int]:
    return strings_to_(strings, lambda x: int(float(x)) if float(x).is_integer() else ValueError(
        "{} cannot be converted to an integer".format(x)))
def strings_to_integers ( strings : Iterable [ str ] ) -> Iterable [ int ] : return strings_to_ ( strings , lambda x : int ( float ( x ) ) if float ( x ) . is_integer ( ) else ValueError ( "{} cannot be converted to an integer" . format ( x ) ) )
Convert a list of strings to a list of integers.
Convert a list of strings to a list of integers .
"""
    Convert a list of strings to a list of integers.

    :param strings: a list of string
    :return: a list of converted integers

    .. doctest::

        >>> strings_to_integers(['1', '1.0', '-0.2'])
        [1, 1, ValueError('-0.2 cannot be converted to an integer')]
        >>> strings_to_integers(['1', '1.0', '-0.'])
        [1, 1, 0]
    """
a list of converted integers
doctest:.


a list of converted integers doctest : .
strings
Iterable[str]
a list of string
a list of string