[Inquiry] Re: Theme One Program -- Commentary -- Fret

Jon Awbrey jawbrey at att.net
Thu Feb 3 09:28:20 CST 2005


o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o

TOP.  Commentary Note 54

o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o

Fret.

Fret is a transformation of ideas that acts as a predicate recognizer,
in effect, computing the logical conjunction of the Lief test and the
negation of the Suspect test, with the non-nil outcome as shown below:

     o---o
     | ( |
     o---o
     ^
this | =/= suspect (this)
     o

function fret (this: idea): idea;
var here: idea;
begin
 here := nil;
 if lief (this) <> nil then
  if suspect (this) = nil then here := this;
 fret := here
end;

o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o
inquiry e-lab: http://stderr.org/pipermail/inquiry/
o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o



More information about the Inquiry mailing list