Closed gemSender closed 2 years ago
Well... Next thing you realize is that you want to also index by an arbitrary integer expression, e.g. being able to do something like D#{friends.[Expr] = <<"john">>}
. Or firends.[Expr]
in general. Essentially, this is similar to what another person suggested in https://github.com/alavrik/erlson/issues/12 Please see my comments there.
for example: D = [{name, <<"joe">>}, {friends, [<<"jack">>, <<"peter">>]}], D1 = D#{friends.1 = <<"john">>}, D1 = [{name, <<"joe">>}, {friends, [<<"jack">>, <<"john">>]}].