To make an array of doubles starting from 1 to 10 I currently am doing:
Dim N() As Double = Enumerable.Range(1, 10).Select(Function(x) CDbl(x)).ToArray
My technique seems inefficient and indirect. I see that
ToArray has the space for arguments but whenever I try
ToArray(Of Double) it gives me an error.
What is the correct way to cast the elements to type Double when creating an array through
Subscribe to get latest updates