single

Purpose

Perform the DEFAULT single tier reduction. This reduces the entire set of nodes that matched a rule phrase.

Syntax

single()

Returns

Remarks

Example

# Since @POST is non-empty, you must explicitly specify reduction.
@POST
 ++G("nouns");
 single();  # NEEDED, or computer will not reduce to _noun.
@RULES
_noun <- computer @@

# In this case, @POST is empty, so single() occurs by default.
@POST
@RULES
_noun <- sheep @@

See Also

singler, singlex, singlezap, noop, POST Actions