Unsupported content

 

This version of the product is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

list.append

list.append(list, value)

Appends an item to a specified list.

Where:

  • list – the list to which to add the value.
  • value – the value to add.

The following code example shows list.append being used to build a list of associated processes. This comes from the TKU Kubernetes pattern.

// Add associated processes
all_procs     := discovery.allProcesses(process);
related_procs := [];

    for procs_cmd in KUBERNETES_PROCS do
        procs := search(in all_procs where cmd matches %procs_cmd%);
        for proc in procs do
             list.append(related_procs, proc);
        end for;
    end for;
inference.associate(k8s_master_si, related_procs); 

Was this page helpful? Yes No Submitting... Thank you

Comments