Skip to content

Latest commit

 

History

History
91 lines (72 loc) · 2.51 KB

File metadata and controls

91 lines (72 loc) · 2.51 KB

type: binary operator

The binary operator type represents a binary operator in the Relevance Language. This is a form of reflection that allows you to see what inspectors are available and how to use them.

left operand type of <binary operator> : type

Returns the type on the left side of the binary operator.

{% qna %} Q: binary operators whose (left operand type of it is type "time zone") A: & : time of day with time zone A: & : time of day with time zone A: + : time zone A: - : time zone A: - : time interval A: = : boolean {% endqna %}

name of <binary operator> : string

Returns the name of the operation performend by the binary operator.

{% qna %} Q: names of binary operators whose (left operand type of it is type "time zone") A: concatenate A: concatenate A: plus A: minus A: minus A: equal {% endqna %}

result type of <binary operator> : type

Returns the type that the binary operator produces.

{% qna %} Q: result types of binary operators whose (left operand type of it is type "time zone") A: time of day with time zone A: time of day with time zone A: time zone A: time zone A: time interval A: boolean {% endqna %}

right operand type of <binary operator> : type

Returns the type on the right side of the binary operator.

{% qna %} Q: binary operators whose (right operand type of it is type "time zone") A: & : time of day with time zone A: & : time of day with time zone A: + : time zone A: - : time interval A: = : boolean {% endqna %}

symbol of <binary operator> : string

Returns the phrase or punctuation mark used to invoke the operator.

{% qna %} Q: unique values of symbols of binary operators A: % A: & A: * A: + A: - A: / A: < A: <= A: = A: contains A: ends with A: starts with {% endqna %}

<binary operator> as string : string

Returns a short description of the operator.

{% qna %} Q: binary operators whose (it as string contains "regular") A: contains : boolean A: = : boolean A: = : boolean A: starts with : boolean A: ends with : boolean {% endqna %}