Skip to main content
-1 byte
Source Link
Ian H.
  • 3k
  • 13
  • 27

C# (.NET Core), 9797 96 + 18 bytes

Saved 1 byte thanks to Kevin Cruijssen!

The 18 bytes are for using System.Linq.

(s,l)=>strings=>l=>string.Concat(s.Split('_').Where(x=>x!="").Zip(l.Concat(new[]{""}),(x,y)=>x+y).ToArray()); 

Try it online!Try it online!

C# (.NET Core), 97 + 18 bytes

The 18 bytes are for using System.Linq.

(s,l)=>string.Concat(s.Split('_').Where(x=>x!="").Zip(l.Concat(new[]{""}),(x,y)=>x+y).ToArray()); 

Try it online!

C# (.NET Core), 97 96 + 18 bytes

Saved 1 byte thanks to Kevin Cruijssen!

The 18 bytes are for using System.Linq.

s=>l=>string.Concat(s.Split('_').Where(x=>x!="").Zip(l.Concat(new[]{""}),(x,y)=>x+y).ToArray()); 

Try it online!

Source Link
Ian H.
  • 3k
  • 13
  • 27

C# (.NET Core), 97 + 18 bytes

The 18 bytes are for using System.Linq.

(s,l)=>string.Concat(s.Split('_').Where(x=>x!="").Zip(l.Concat(new[]{""}),(x,y)=>x+y).ToArray()); 

Try it online!