bool hasMemoized(Parser parser, int position) { var list = _memo[parser]; return list?.any((t) => t.item1 == position) == true; }