The power of LINQ is incredible

This expression is so powerful

int[] input = Array.ConvertAll(Console.ReadLine().ToArray(), x => x - 48); 

I've only-ish just started using Linq, and oh boy, does it make life so easy.

by lewisj489 via /r/csharp

Leave a Reply