You simply update the contents of the array. This can be seen in the turbulence plugin. We declare a variable here:
and then update it here:
Note that it only works for array types (not scalars, which go through a different code path), although a broadcasted array wih a single element will enable you to emulate scalar arguments.