Timeline for Turn an integer n into a list containing it n times
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 24, 2017 at 10:10 | comment | added | TheLethalCoder | @ManfredRadlwimmer Well you can fully qualify it here :) | |
Aug 24, 2017 at 10:10 | comment | added | Manfred Radlwimmer |
Oh, right - the using
|
|
Aug 24, 2017 at 10:10 | history | edited | TheLethalCoder | CC BY-SA 3.0 |
added 84 characters in body
|
Aug 24, 2017 at 10:10 | comment | added | TheLethalCoder | @ManfredRadlwimmer Actually 37 but does save a byte thanks! | |
Aug 24, 2017 at 10:08 | comment | added | Manfred Radlwimmer |
25: n=>Enumerable.Repeat(n,n)
|
|
Aug 21, 2017 at 16:22 | comment | added | TheLethalCoder |
@TheJoeIaut So you're aware that would have to be new string... note the lower case :) Though yes it is the same length unfortunately.
|
|
Aug 21, 2017 at 16:20 | comment | added | TheJoeIaut | Also 38 Bytes but more readable: n=>new String((char)n,n).ToCharArray() | |
Aug 21, 2017 at 11:29 | history | answered | TheLethalCoder | CC BY-SA 3.0 |