我不知道确切的措辞,但我想知道在从列表中选择时是否可以有“偏好”。
For example, if I have a list of comparable tree objects with different variables (size, type, height), is it possible to "prefer" say bigger tree/ one type of tree over the other etc. In other words when choosing one object从列表中,倾向于选择最大的树或选择一种类型的树而不是另一种,但并非总是如此(存在随机元素)。