It could also be:

    erl.update_attributes([{ attr, avalue(value) } | &1 ])