Create single permutation with LINQ in C#
.net, c#, linq
Solution
List<int> list = Enumerable.Range(1, n).ToList();
Problem
I have this code: ``` List<int> list = new List<int>(); for (int i = 1; i <= n; i++) list.Add(i); ``` Can I create this `List<int>` in one line with LINQ?