Skip to main content
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Source Link

C#6, 201 bytes, by milkby milk

using System.Linq; _=>string./**/ #if trueJoin (/*"*//*/""/**//*/"*/", #else Concat(//*/, #endif from m in" "let p=$@"{@" "[1]}"from i in(_.Replace(p,@""))where!new[]{p[0]^32^10}.Contains(i)select@i); 

repl.it demo

trueJoin is not defined, so only string.Concat() remains.
p is "\n". p[0]^32^10 is space. It would have been (a bit) more difficult if it's p[0]^42 or other similar constants.

C#6, 201 bytes, by milk

using System.Linq; _=>string./**/ #if trueJoin (/*"*//*/""/**//*/"*/", #else Concat(//*/, #endif from m in" "let p=$@"{@" "[1]}"from i in(_.Replace(p,@""))where!new[]{p[0]^32^10}.Contains(i)select@i); 

repl.it demo

trueJoin is not defined, so only string.Concat() remains.
p is "\n". p[0]^32^10 is space. It would have been (a bit) more difficult if it's p[0]^42 or other similar constants.

C#6, 201 bytes, by milk

using System.Linq; _=>string./**/ #if trueJoin (/*"*//*/""/**//*/"*/", #else Concat(//*/, #endif from m in" "let p=$@"{@" "[1]}"from i in(_.Replace(p,@""))where!new[]{p[0]^32^10}.Contains(i)select@i); 

repl.it demo

trueJoin is not defined, so only string.Concat() remains.
p is "\n". p[0]^32^10 is space. It would have been (a bit) more difficult if it's p[0]^42 or other similar constants.

added 2 characters in body
Source Link
Link Ng
  • 593
  • 2
  • 10

C#6, 201 bytes, by milk

using System.Linq; _=>string./**/ #if trueJoin (/*"*//*/""/**//*/"*/", #else Concat(//*/, #endif from m in" "let p=$@"{@" "[1]}"from i in(_.Replace(p,@""))where!new[]{p[0]^32^10}.Contains(i)select@i); 

repl.it demo

trueJoin is not defined, so only string.JoinConcat() remains.
p is "\n". p[0]^32^10 is space. It would have been (a bit) more difficult if it's p[0]^42 or other similar constants.

C#6, 201 bytes, by milk

using System.Linq; _=>string./**/ #if trueJoin (/*"*//*/""/**//*/"*/", #else Concat(//*/, #endif from m in" "let p=$@"{@" "[1]}"from i in(_.Replace(p,@""))where!new[]{p[0]^32^10}.Contains(i)select@i); 

repl.it demo

trueJoin is not defined, so only string.Join() remains.
p is "\n". p[0]^32^10 is space. It would have been (a bit) more difficult if it's p[0]^42 or other similar constants.

C#6, 201 bytes, by milk

using System.Linq; _=>string./**/ #if trueJoin (/*"*//*/""/**//*/"*/", #else Concat(//*/, #endif from m in" "let p=$@"{@" "[1]}"from i in(_.Replace(p,@""))where!new[]{p[0]^32^10}.Contains(i)select@i); 

repl.it demo

trueJoin is not defined, so only string.Concat() remains.
p is "\n". p[0]^32^10 is space. It would have been (a bit) more difficult if it's p[0]^42 or other similar constants.

added 1 character in body
Source Link
Link Ng
  • 593
  • 2
  • 10

C#C#6, 201 bytes, by milk

using System.Linq; _=>string./**/ #if trueJoin (/*"*//*/""/**//*/"*/", #else Concat(//*/, #endif from m in" "let p=$@"{@" "[1]}"from i in(_.Replace(p,@""))where!new[]{p[0]^32^10}.Contains(i)select@i); 

repl.it demo

trueJoin is not defined, so only string.Join() remains.
p is "\n". p[0]^32^10 is space. It would have been (a bit) more difficult if it's p[0]^42 or other similar constants.

C#, 201 bytes, by milk

using System.Linq; _=>string./**/ #if trueJoin (/*"*//*/""/**//*/"*/", #else Concat(//*/, #endif from m in" "let p=$@"{@" "[1]}"from i in(_.Replace(p,@""))where!new[]{p[0]^32^10}.Contains(i)select@i); 

repl.it demo

trueJoin is not defined, so only string.Join() remains.
p is "\n". p[0]^32^10 is space. It would have been (a bit) more difficult if it's p[0]^42 or other similar constants.

C#6, 201 bytes, by milk

using System.Linq; _=>string./**/ #if trueJoin (/*"*//*/""/**//*/"*/", #else Concat(//*/, #endif from m in" "let p=$@"{@" "[1]}"from i in(_.Replace(p,@""))where!new[]{p[0]^32^10}.Contains(i)select@i); 

repl.it demo

trueJoin is not defined, so only string.Join() remains.
p is "\n". p[0]^32^10 is space. It would have been (a bit) more difficult if it's p[0]^42 or other similar constants.

added 194 characters in body
Source Link
Link Ng
  • 593
  • 2
  • 10
Loading
Source Link
Link Ng
  • 593
  • 2
  • 10
Loading