/**
 * Given a list of tuples containing the coordinates of the intersection of two streets in a city,
 * return a list with the x-coordinates of all the intersections.
 *
 * @param tuplesList A list of tuples containing the coordinates of intersections.
 * @return A list with the x-coordinates of all the intersections.
 *
 * Example:
 * sliceTuples(listOf(1 to 2, 3 to 4, 5 to 6)) returns [1, 3, 5]
 */
fun sliceTuples(tuplesList: List<Pair<Int, Int>>): List<Int> {

    return tuplesList.map { it.first }
}
/**
 * Given a list of tuples containing the coordinates of the intersection of two streets in a city,
 * return a list with the x-coordinates of all the intersections.
 *
 * @param tuplesList A list of tuples containing the coordinates of intersections.
 * @return A list with the x-coordinates of all the intersections.
 *
 * Example:
 * sliceTuples(listOf(1 to 2, 3 to 4, 5 to 6)) returns [1, 3, 5]
 */
fun sliceTuples(tuplesList: List<Pair<Int, Int>>): List<Int> {
/**
 * Given a list of tuples containing the coordinates of the intersection of two streets in a city,
 * return a list with the x-coordinates of all the intersections.
 *
 * @param tuplesList A list of tuples containing the coordinates of intersections.
 * @return A list with the x-coordinates of all the intersections.
 *
 * Example:
 * sliceTuples(listOf(1 to 2, 3 to 4, 5 to 6)) returns [1, 3, 5]
 */
fun sliceTuples(tuplesList: List<Pair<Int, Int>>): List<Int> {

    return tuplesList.map { it.first }
}