public List <Key1> Instruct(Ary2Dictionary <Key1, Key2, Range> student) { var ret = new List <Key1>(); Range student_last_taught; foreach (var tmp in _no_entries) { if (student.HaveEverSeen(tmp.Key, out student_last_taught) && -1 < student_last_taught.CompareTo(tmp.Value)) { continue; } ret.Add(tmp.Key); student.Set(tmp.Key, null, tmp.Value); } foreach (var tmp in _first_second_dict) { if (student.HaveEverSeen(tmp.Key, out student_last_taught) && -1 < student_last_taught.CompareTo(tmp.Value.Key)) { continue; } ret.Add(tmp.Key); student.Set(tmp.Key, tmp.Value.Value, tmp.Value.Key); } return(ret); }
public void Instruct(Ary2Dictionary <Key1, Key2, Range> student) { Range student_last_taught; foreach (KeyValuePair <Key1, Range> tmp in _no_entries) { if (student.HaveEverSeen(tmp.Key, out student_last_taught) && student_last_taught >= tmp.Value) { continue; } student.Set(tmp.Key, null, tmp.Value); } foreach (KeyValuePair <Key1, Dictionary <Key2, Range> > tmp in _first_second_dict) { } }