associativity

(redirected from Associative property)
Also found in: Dictionary, Wikipedia.

associativity

(programming)
The property of an operator that says whether a sequence of three or more expressions combined by the operator will be evaluated from left to right (left associative) or right to left (right associative). For example, in Perl, the lazy and operator && is left associative so in the expression:

$i >= 0 && $x[$i] >= 0 && $y[$x[$i]] == 0

the left-most && is evaluated first, whereas = is right associative, so in

$a = $b = 42

the right-most assignment is performed first.
This article is provided by FOLDOC - Free Online Dictionary of Computing (foldoc.org)
References in periodicals archive ?
The advantage of array models is that they show two-dimensional multiplicative processes, and nicely illustrate various number properties, such as the associative property (e.g., 3 x 27 transformed into 9 x 9), and the distributive property (e.g., 24 x 6 as 20 x 6 and 4 x 6).
Also we can still use the associative property: 3 + 9 (2 + 1) + 9 2 + (1 + 9) Conceptual 10 (C10) Multiplication with whole numbers.
Associative property is well satisfied in Dempster's rule of combination.
It has to be pointed out that the associative property is not satisfied in the previous D numbers combination rule; that is to say that the sequence of multiple D numbers has great effects on the final results when they get combined.
The associative property is not satisfied in the rule of combining multiple D numbers.
He uses everyday examples and common sense to explain absolute value to antiparticles to associative property to binary systems and on to common denominators, division, fractions, graphing, irrational numbers, number lines, parallelograms, sampling, and variables.