MCPcopy Create free account
hub / github.com/PRQL/prql / left_associative

Method left_associative

prqlc/prqlc/src/sql/gen_expr.rs:1046–1048  ·  view source on GitHub ↗

Returns true iff `a + b + c = (a + b) + c`

(&self)

Source from the content-addressed store, hash-verified

1044impl Associativity {
1045 /// Returns true iff `a + b + c = (a + b) + c`
1046 fn left_associative(&self) -> bool {
1047 matches!(self, Associativity::Left | Associativity::Both)
1048 }
1049
1050 /// Returns true iff `a + b + c = a + (b + c)`
1051 fn right_associative(&self) -> bool {

Callers 1

needs_parenthesesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected