ErlPatternMatcher Match Method NFX Class Library

[This is preliminary documentation and is subject to change.]

Match a term against the patterns in the collection. The first successful match will result in invocation of the func associated with the pattern, and storing func result in the term

Namespace: NFX.Erlang
Assembly: NFX.Erlang (in NFX.Erlang.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax

public int Match(
	ref IErlObject term,
	params Object[] args
)

Parameters

term
Type: NFX.Erlang IErlObject 
Term to match against patterns
args
Type:  OnlineSystem Object 
Arguments to be passed to an func on successful pattern match

Return Value

Type: OnlineInt32
ID of the pattern that matched, or -1 if there were no matches
See Also