Previous Up Next

5.35.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