/**
 * This function takes a dictionary and a key as arguments.
 * It searches for the given key in the dictionary and returns the index of that key.
 *
 * @param dictionary The dictionary to search in.
 * @param key The key to search for.
 * @return The index of the key in the dictionary.
 */
fun indexInDict(dictionary: Map<String, Any>, key: String): Int {

    // Find the index of the key in the dictionary, and return it
    return dictionary.keys.toList().indexOf(key)
}
/**
 * This function takes a dictionary and a key as arguments.
 * It searches for the given key in the dictionary and returns the index of that key.
 *
 * @param dictionary The dictionary to search in.
 * @param key The key to search for.
 * @return The index of the key in the dictionary.
 */
fun indexInDict(dictionary: Map<String, Any>, key: String): Int {
/**
 * This function takes a dictionary and a key as arguments.
 * It searches for the given key in the dictionary and returns the index of that key.
 *
 * @param dictionary The dictionary to search in.
 * @param key The key to search for.
 * @return The index of the key in the dictionary.
 */
fun indexInDict(dictionary: Map<String, Any>, key: String): Int {

    // Find the index of the key in the dictionary, and return it
    return dictionary.keys.toList().indexOf(key)
}