0

dont understand (linq)

for what is the new keyword and these things = [] /// return string.Concat(str.SelectMany(c=>new []{c,c})); /// https://edabit.com/challenge/fKZHLzmR8anBrxgNt

27th May 2020, 6:02 PM
Michael
2 odpowiedzi
+ 4
Michael This might be a little late... but here is a code explaining this for you. https://code.sololearn.com/co4NH3ER25wF/?ref=app Basically this part of the code: new[] {c, c} Creates a new char array containing two copies of the same character. See my code to see more details.
22nd Nov 2020, 3:33 AM
David Carroll
David Carroll - avatar
0
Nice
8th Jun 2020, 7:55 PM
Jibril Umar
Jibril Umar - avatar