ecl-logo Documentation

ExtractRule

ExtractRule[listOfRules, field]out

extracts the first rule whose left side match field.

Details

    Input
    Output

Examples

Basic Examples  (4)

Extract a rule from list of rules:

Specify only left side of rule:

Returns empty list of matching rule not found:

Extract multiple rules: