/**
 * This function is used to access specific mineral data from rock samples.
 *
 * @param samples A list containing rock samples.
 * @param sampleIndex The index of the specific sample to access.
 * @param mineralIndex The index of the specific mineral to access within the sample.
 * @return The mineral data associated with the specified sample and mineral index.
 *
 * Example:
 * Given the list of rock samples samples = listOf(listOf("Quartz", "Feldspar"), listOf("Magnetite", "Hematite")),
 * the sampleIndex = 1, and the mineralIndex = 0, the function will return "Magnetite".
 */
fun accessMineralData(samples: List<List<String>>, sampleIndex: Int, mineralIndex: Int): String {

    val sample = samples[sampleIndex]  // Access the specific rock sample
    val mineralData = sample[mineralIndex]  // Access the specific mineral data within the sample

    return mineralData
}
/**
 * This function is used to access specific mineral data from rock samples.
 *
 * @param samples A list containing rock samples.
 * @param sampleIndex The index of the specific sample to access.
 * @param mineralIndex The index of the specific mineral to access within the sample.
 * @return The mineral data associated with the specified sample and mineral index.
 *
 * Example:
 * Given the list of rock samples samples = listOf(listOf("Quartz", "Feldspar"), listOf("Magnetite", "Hematite")),
 * the sampleIndex = 1, and the mineralIndex = 0, the function will return "Magnetite".
 */
fun accessMineralData(samples: List<List<String>>, sampleIndex: Int, mineralIndex: Int): String {
/**
 * This function is used to access specific mineral data from rock samples.
 *
 * @param samples A list containing rock samples.
 * @param sampleIndex The index of the specific sample to access.
 * @param mineralIndex The index of the specific mineral to access within the sample.
 * @return The mineral data associated with the specified sample and mineral index.
 *
 * Example:
 * Given the list of rock samples samples = listOf(listOf("Quartz", "Feldspar"), listOf("Magnetite", "Hematite")),
 * the sampleIndex = 1, and the mineralIndex = 0, the function will return "Magnetite".
 */
fun accessMineralData(samples: List<List<String>>, sampleIndex: Int, mineralIndex: Int): String {

    val sample = samples[sampleIndex]  // Access the specific rock sample
    val mineralData = sample[mineralIndex]  // Access the specific mineral data within the sample

    return mineralData
}