Avoid searching items twice.
Add typedef together with value.