Succeeds if the argument represents the same value. Note that PCE type
conversion converts real
objects, number
objects and text to ints and thus all the following succeed:
?- send(number(1), equal, 1).
?- send(number(1), equal, 1.0).
?- send(number(1), equal, number(1)).
?- send(number(1), equal, '1').
Set number<-value
to the {number->maximum, number->minimum}
of the current number<-value
and the argument. Useful in may computations. Suppose Chain is a
chain holding string and we which to know the widest string given the
font
Font:
width_of_strings(Chain, Font, Width) :-
new(W, number(0)),
send(Chain, for_all,
message(W, maximum, ?(Font, width, @arg1))),
get(W, value, Width),
send(W, done).