kawa.lang
Class VarListPat
A Pattern that will match a list of a given minimum length.
boolean | match(Object obj, Object[] vars, int start_vars) - Succeeds of obj is a list with at least min_length elements.
|
int | varCount()
|
VarListPat
public VarListPat(int min)
match
public boolean match(Object obj,
Object[] vars,
int start_vars)
Succeeds of obj is a list with at least min_length elements.
- match in interface Pattern
obj
- the object to match against
- true if the match succeeded.
The elements vars[start_vars .. start_vars + min_length] contain
the first min_length elements of obj followed by the
min_length'th cdr of obj.