pradosoft / prado

Prado - Component Framework for PHP
Other
187 stars 70 forks source link

#925 TMap::keyOf is added, additional checks on TPriorityMap #926

Closed belisoful closed 1 year ago

belisoful commented 1 year ago

TPriorityMap should not just return the first instance of a value but it should depend on the priority. higher priorities are first in the map.

belisoful commented 1 year ago

Should these be called keyOf instead of IndexOf? I was modeling from TList.

ctrlaltca commented 1 year ago

yep, keyOf seems moreappropriate

belisoful commented 1 year ago

Corrected.