Skip to content

Commit

Permalink
All tests have passed
Browse files Browse the repository at this point in the history
  • Loading branch information
alihaiderkhannn committed Aug 13, 2024
1 parent 7d8d08a commit afdeae1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion csharp-fundamentals-lists.Main/Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public List<string> Question3()
//TODO: you can 'chain' methods on the _iceCream list, so add another Concat to include EvenMoreIceCream (this is defined below) to the result list . e.g. _iceCreams.Concat(this.MoreIceCream).Concat(other list to concat).ToList()

List<string> results = _iceCreams.Concat(this.MoreIceCream).ToList();

results = _iceCreams.Concat(this.MoreIceCream).Concat(this.EvenMoreIceCream).ToList();
return results;

// remove exception and write code here
Expand All @@ -73,6 +73,7 @@ public List<string> Question4()


List<string> results = _iceCreams;
results = _iceCreams.Concat(this.MoreIceCream).Concat(this.EvenMoreIceCream).Distinct().ToList();
// remove exception and write code here
return results;
}
Expand Down

0 comments on commit afdeae1

Please sign in to comment.