/**
 * This function takes a list of floating-point numbers and a list of lists, and returns the intersection of
 * the floating-point numbers with the inner lists of the given list.
 *
 * @param numbers a list of floating-point numbers
 * @param lst a list of lists
 * @return the intersection of the floating-point numbers with the inner lists of the given list
 */
fun floatingPointIntersection(numbers: List<Double>, lst: List<List<Double>>): List<List<Double>> {

    val intersection = mutableListOf<List<Double>>()

    for (innerList in lst) {
        val temp = mutableListOf<Double>()
        for (number in numbers) {
            if (number in innerList) {
                temp.add(number)
            }
        }
        if (temp.isNotEmpty()) {
            intersection.add(temp)
        }
    }

    return intersection
}
/**
 * This function takes a list of floating-point numbers and a list of lists, and returns the intersection of
 * the floating-point numbers with the inner lists of the given list.
 *
 * @param numbers a list of floating-point numbers
 * @param lst a list of lists
 * @return the intersection of the floating-point numbers with the inner lists of the given list
 */
fun floatingPointIntersection(numbers: List<Double>, lst: List<List<Double>>): List<List<Double>> {
/**
 * This function takes a list of floating-point numbers and a list of lists, and returns the intersection of
 * the floating-point numbers with the inner lists of the given list.
 *
 * @param numbers a list of floating-point numbers
 * @param lst a list of lists
 * @return the intersection of the floating-point numbers with the inner lists of the given list
 */
fun floatingPointIntersection(numbers: List<Double>, lst: List<List<Double>>): List<List<Double>> {

    val intersection = mutableListOf<List<Double>>()

    for (innerList in lst) {
        val temp = mutableListOf<Double>()
        for (number in numbers) {
            if (number in innerList) {
                temp.add(number)
            }
        }
        if (temp.isNotEmpty()) {
            intersection.add(temp)
        }
    }

    return intersection
}