/**
 * Given a list of pairs representing coordinates (longitude, latitude),
 * this function transforms each coordinate to a new pair where the
 * longitude is negative and the latitude is doubled.
 *
 * @param points A list of pairs representing coordinates, where each pair has
 *               two elements (longitude, latitude).
 * @return A list of transformed pairs where each pair has longitude as negative
 *         and latitude doubled.
 */
fun transformCoordinates(points: List<Pair<Double, Double>>): List<Pair<Double, Double>> {

    return points.map { (longitude, latitude) -> Pair(-longitude, latitude * 2) }
}
/**
 * Given a list of pairs representing coordinates (longitude, latitude),
 * this function transforms each coordinate to a new pair where the
 * longitude is negative and the latitude is doubled.
 *
 * @param points A list of pairs representing coordinates, where each pair has
 *               two elements (longitude, latitude).
 * @return A list of transformed pairs where each pair has longitude as negative
 *         and latitude doubled.
 */
fun transformCoordinates(points: List<Pair<Double, Double>>): List<Pair<Double, Double>> {
/**
 * Given a list of pairs representing coordinates (longitude, latitude),
 * this function transforms each coordinate to a new pair where the
 * longitude is negative and the latitude is doubled.
 *
 * @param points A list of pairs representing coordinates, where each pair has
 *               two elements (longitude, latitude).
 * @return A list of transformed pairs where each pair has longitude as negative
 *         and latitude doubled.
 */
fun transformCoordinates(points: List<Pair<Double, Double>>): List<Pair<Double, Double>> {

    return points.map { (longitude, latitude) -> Pair(-longitude, latitude * 2) }
}