I see related issues and solutions in Google and in previous answers here, but they all baffle me.
Say I have a list of records, each with an id. Say:
-record(blah, {id, data}).
Record2#blah.id = 7
L = [Record1, Record2, ... ]
I'm looking for a function like get_record(List, ID) that will return the corresponding record in it's entirety, e.g.:
22> get_record(L, 7).
{blah, id=7, data="ta da!"}
Many thanks,
LRP
I