5.9 String operators

5.9.1 Relational

Operator: eq = (string a, b) bool
Operator: = = (string a, b) bool

Dyadic operator that yields whether its operands are equal. Two strings are equal if they contain the same sequence of characters.

Operator: ne = (string a, b) bool
Operator: /= = (string a, b) bool

Dyadic operator that yields whether its operands are not equal.

Operator: lt = (string a, b) bool
Operator: < = (string a, b) bool

Dyadic operator that yields whether the string a is less than the string b.

Operator: le = (string a, b) bool
Operator: <= = (string a, b) bool

Dyadic operator that yields whether the string a is less than, or equal to string b.

Operator: gt = (string a, b) bool
Operator: > = (string a, b) bool

Dyadic operator that yields whether the string a is greater than the string b.

Operator: ge = (string a, b) bool
Operator: >= = (string a, b) bool

Dyadic operator that yields whether the string a is greater than, or equal to the string b.

5.9.2 Composition

Operator: + = (string a, b) string

Dyadic operator that yields the concatenation of the two given strings as a new string.

Operator: + = (string a, char b) string

Dyadic operator that yields the concatenation of the given string a and a string whose contents are the character b.

Operator: * (= (int a, string b) string)
Operator: * (= (string b, int a) string)

Dyadic operator that yields the string a concatenated a times to itself. If a is less than zero then it is interpreted to be zero.

5.9.3 Composition combined with assignation

Operator: plusab = (ref string a, string b) ref string
Operator: +:= = (ref string a, string b) ref string

Plus and become. Dyadic operator that calculates a + b, assigns the result of the operation to the name a and then yields a.

Operator: plusto = (string b, ref string a) ref string
Operator: +=: = (string b, ref string b) ref string

Dyadic operator that calculates a + b, assigns the result of the operation to the name a and then yields a.

Operator: timesab = (ref string a, string b) ref string
Operator: *:= = (ref string a, string b) ref stringl

Plus and become. Dyadic operator that calculates a * b, assigns the result of the operation to the name a and then yields a.