I'm using a construct (more complex in fact as the value_ should take a list) to select some entries from an association with criteria:
g[assoc_, value_]:= Select[(#column == value)&][assoc]
As you can see, column name is 'hardcoded', so it literally must be in assoc.
Is there a proper way to pass arbitrary column_ name to function construct?
g[assoc_, value_, column_]
Now I could do some g[assoc_, value_, #column] but it seems ugly, and MMA marks it. Would be nice to combine somehow # with variable name.
Or some workaround?
#[column] == value? – Kuba Jan 15 '18 at 13:40