nosort

nosort, contextual keyword

nosort marks a process as order-independent, so it can be called without sort or scan.

Examples

def nosort process mySquaredSum(x: number) with
  y = sum(x)
  return y^2

table T = extend.range(3)

v = mySquaredSum(T.N)

show table "Squared sum" with
  v as "Value"

This produces the following table:

Value
36

Remarks

nosort processes cannot use keep state and can only call other nosort processes.

User Contributed Notes
0 notes + add a note