Ejemplo n.º 1
0
 public override IEnumerable <(MatchResult, IEnumerable <Value>)> MatchSequence(IEnumerable <Value> exprs, MatchContext context)
 {
     return(_pattern.MatchSequence(exprs, context).Where(pair => ApplyCondition(pair.Item1)));
 }
Ejemplo n.º 2
0
 public override IEnumerable <(MatchResult, IEnumerable <Value>)> MatchSequence(IEnumerable <Value> exprs, MatchContext context)
 {
     return(_pattern.MatchSequence(exprs, context).Select(x => (FilterMatch(x.Item1), x.Item2)).Where(x => x.Item1 != null));
 }