from preamble:
"Change Set: converse-raok Date: 30 September 2002 Author: Richard A. O'Keefe
There are applications, like reserving a sorted collection, or sorting in reverse order, but not limited to those, where we would like to take the converse of a predicate. The converse of a function f : (x, y) -> z is a function converse(f) : (y, x) -> z.
This change set adds a class BinaryBlockConverse and methods so that aBlock converse value: x value: y = aBlock value: y value: x."!
Richard,
after taking a short look at the code: BinaryBlockConverse>>fixTemps should be added to the changeset, since it is called by SortedCollection>>sortBlock:.
Greetings,
Stephan
ok@cs.otago.ac.nz wrote:
from preamble:
"Change Set: converse-raok Date: 30 September 2002 Author: Richard A. O'Keefe
There are applications, like reserving a sorted collection, or sorting in reverse order, but not limited to those, where we would like to take the converse of a predicate. The converse of a function f : (x, y) -> z is a function converse(f) : (y, x) -> z.
This change set adds a class BinaryBlockConverse and methods so that aBlock converse value: x value: y = aBlock value: y value: x."!
squeak-dev@lists.squeakfoundation.org