Next: Comparison Operations, Previous: String Operations, Up: Expressions [Contents][Index]
The following operations are defined on A/V lists:
x + yAddition. The A/V pairs from y are added to x, honoring the respective pairs additivity (see additivity). For example:
( User-Name = "foo" ) + ( Password = "bar" )
⇒ ( User-Name = "foo" Password = "bar" )
( User-Name = "foo" Service-Type = Login-User ) + \
( Service-Type = Framed-User Password = "bar" )
⇒ ( User-Name = "foo" \
Service-Type = Framed-User \
Password = "bar" )
x - ySubtraction. The result of this operation is an A/V list consisting of pairs from x, which are not found in y.
( User-Name = "foo" Service-Type = Login-User ) - \ ( Service-Type = Framed-User ) ⇒ ( User-Name = "foo" )
Notice, that only attribute name matters, its value is ignored.
x % yIntersection. The result of this operation is an A/V pair list consisting of pairs from x which are also present in y.
( User-Name = "foo" Service-Type = Login-User ) - \ ( Service-Type = Framed-User ) ⇒ ( Service-Type = Login-User )