Nix Language - Operators
String: + Number: + - * / Relation: == != Boolean: ! Attr: a.x a.x or 1 Sets: {} // {}
Precedence
Pre Asso Name Syntax 1 none Attribute selection attrset . attrpath [ or expr ] 2 left Function application func expr 3 none Arithmetic negation - number 4 none Has attribute attrset ? attrpath 5 right List concatenation list ++ list 6 left Multiplication number * number left Division number / number 7 left Subtraction number - number left Addition number + number left String concatenation string + string left Path concatenation path + path left Path and string concatenation path + string left String and path concatenation string + path 8 none Logical negation (NOT) ! bool 9 right Update attrset // attrset 10 none Less than expr < expr none Less than or equal to expr <= expr none Greater than expr > expr none Greater than or equal to expr >= expr 11 none Equality expr == expr none Inequality expr != expr 12 left Logical conjunction (AND) bool && bool 13 left Logical disjunction (OR) bool || bool 14 right Logical implication bool -> bool