/**
 * A firefighter station receives emergency calls.
 * This function takes the station name and a list of calls and returns the calls
 * that are specifically assigned to that station as a tuple.
 *
 * @param station Name of the firefighter station.
 * @param calls List of pairs containing the call details (station, emergency_code).
 * @return Calls specifically assigned to the given station as a tuple.
 *
 * Example:
 * intersectionOfInOperatorAndTupleCreation("Station A", listOf(Pair("Station A", "E1"), Pair("Station B", "E2"), Pair("Station A", "E3")))
 * Output: listOf(Pair("Station A", "E1"), Pair("Station A", "E3"))
 */
fun intersectionOfInOperatorAndTupleCreation(station: String, calls: List<Pair<String, String>>): List<Pair<String, String>> {

    val assignedCalls = mutableListOf<Pair<String, String>>()

    for (call in calls) {
        if (call.first == station) {
            assignedCalls.add(call)
        }
    }

    return assignedCalls
}
/**
 * A firefighter station receives emergency calls.
 * This function takes the station name and a list of calls and returns the calls
 * that are specifically assigned to that station as a tuple.
 *
 * @param station Name of the firefighter station.
 * @param calls List of pairs containing the call details (station, emergency_code).
 * @return Calls specifically assigned to the given station as a tuple.
 *
 * Example:
 * intersectionOfInOperatorAndTupleCreation("Station A", listOf(Pair("Station A", "E1"), Pair("Station B", "E2"), Pair("Station A", "E3")))
 * Output: listOf(Pair("Station A", "E1"), Pair("Station A", "E3"))
 */
fun intersectionOfInOperatorAndTupleCreation(station: String, calls: List<Pair<String, String>>): List<Pair<String, String>> {
/**
 * A firefighter station receives emergency calls.
 * This function takes the station name and a list of calls and returns the calls
 * that are specifically assigned to that station as a tuple.
 *
 * @param station Name of the firefighter station.
 * @param calls List of pairs containing the call details (station, emergency_code).
 * @return Calls specifically assigned to the given station as a tuple.
 *
 * Example:
 * intersectionOfInOperatorAndTupleCreation("Station A", listOf(Pair("Station A", "E1"), Pair("Station B", "E2"), Pair("Station A", "E3")))
 * Output: listOf(Pair("Station A", "E1"), Pair("Station A", "E3"))
 */
fun intersectionOfInOperatorAndTupleCreation(station: String, calls: List<Pair<String, String>>): List<Pair<String, String>> {

    val assignedCalls = mutableListOf<Pair<String, String>>()

    for (call in calls) {
        if (call.first == station) {
            assignedCalls.add(call)
        }
    }

    return assignedCalls
}