logo       

[ENH] converse-raok: msg#00790

lang.smalltalk.squeak.general

Subject: [ENH] converse-raok

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."!

Attachment: converse-raok.cs.gz
Description: Binary data

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise