wasSharp – Diff between revs 11 and 12
?pathlinks?
Rev 11 | Rev 12 | |||
---|---|---|---|---|
Line 5... | Line 5... | |||
5 | /////////////////////////////////////////////////////////////////////////// |
5 | /////////////////////////////////////////////////////////////////////////// |
|
Line 6... | Line 6... | |||
6 | |
6 | |
|
7 | using System; |
7 | using System; |
|
8 | using System.Collections.Generic; |
8 | using System.Collections.Generic; |
|
9 | using System.Linq; |
- | ||
10 | using System.Text; |
- | ||
Line 11... | Line 9... | |||
11 | using System.Threading.Tasks; |
9 | using System.Linq; |
|
12 | |
10 | |
|
13 | namespace wasSharp.Linq |
11 | namespace wasSharp.Linq |
|
14 | { |
12 | { |
|
Line 56... | Line 54... | |||
56 | : r.Zip(l, (x, y) => x.Equals(y) ? default(T) : y) |
54 | : r.Zip(l, (x, y) => x.Equals(y) ? default(T) : y) |
|
57 | .Concat(r.Skip(l.Count())) |
55 | .Concat(r.Skip(l.Count())) |
|
58 | .Where(q => q != null && !q.Equals(default(T))); |
56 | .Where(q => q != null && !q.Equals(default(T))); |
|
59 | } |
57 | } |
|
60 | } |
58 | } |
|
61 | } |
59 | } |
|
62 | |
60 | |