How can I access generic items in a function?

This technique may be useful too