Affix[instance, instance]
returns a copy of instance with instance affixed.

represents an operator form of Affix that can be applied to an expression.


  • Affix works on class instances similar to how Append works on Association objects. Single new elements are specified in the form of key->value. New values replace older ones if their keys are the same.
  • Delayed values can be specified using key:>value.
  • Multiple elements to affix to a class instance can be specified in the form {key1->value1,key2->value2, }.
  • Affix[element][instance] is equivalent to Affix[instance, element].
  • Elements can alternatively be specified using ClassSet and ClassSetDelayed.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Loads the Lie Analysis package

Click for copyable input

Set the element Data from Object

Click for copyable input