Extracted from Pike v7.4 release 341 at 2005-11-21.
pike.ida.liu.se
[Top]
predef::
ADT
ADT.Relation
ADT.Relation.Binary

Method ADT.Relation.Binary()->filter()


Method filter

object filter(function f)

Description

Filters the entries in the relation, and returns a relation with all those entries for which the filtering function f returned true. The function f gets two arguments: the left and the right value for every entry in the relation.