Previous Up Next

2.34.2  Boundaries of an interval : left right

left (resp right) takes as argument an interval.
left (resp right) returns the left (resp right) boundary of this interval.
Note that .. is an infixed operator, therefore:

Input :

(3..5)[0]

Or :

sommet(3..5)

Output :

’..’

Input :

left(3..5)

Or :

(3..5)[1]

Or :

feuille(3..5)[0]

Or :

op(3..5)[0]

Output :

3

Input :

right(3..5)

Or :

(2..5)[2]

Or :

feuille(3..5)[1]

Or :

op(3..5)[1]

Output :

5

Remark
left (resp right) returns also the left (resp right) member of an equation (for example left(2*x+1=x+2) returns 2*x+1).


Previous Up Next