释义 |
associativity
as·so·ci·a·tive A5499900 (ə-sō′shə-tĭv, -sē-ə-tĭv, -sē-ā′tĭv, -shē-)adj.1. Of, characterized by, resulting from, or causing association.2. Mathematics Independent of the grouping of elements. For example, if a + (b + c) = (a + b) + c, the operation indicated by + is associative. as·so′ci·a·tive·ly adv.as·so′ci·a′tiv′i·ty (-sē-ə-tĭv′ĭ-tē, -shē-, -shə-tĭv′-) n.associativity (əˌsəʊsɪəˈtɪvɪtɪ) nthe quality of being associativeTranslationsassociativity
associativity (programming)The property of an operator that says whethera sequence of three or more expressions combined by theoperator will be evaluated from left to right (leftassociative) or right to left (right associative). Forexample, in Perl, the lazy and operator && is leftassociative so in the expression:
$i >= 0 && $x[$i] >= 0 && $y[$x[$i]] == 0
the left-most && is evaluated first, whereas = is rightassociative, so in
$a = $b = 42
the right-most assignment is performed first.ThesaurusSeeassociative |