get_dict_key_from_value

compas_slicer.utilities.get_dict_key_from_value(dictionary, val)[source]

Return the key of a dictionary that stores the val

Parameters:
  • dictionary (dict)

  • val (anything that can be stored in a dictionary)