Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Vb

Idiom #258 Convert list of strings to list of integers

Convert the string values from list a into a list of integers b.

For i = LBound(a) To UBound(a)
    b(i) = CInt(a(i))
Next
System.Linq;
var b = a.Select(i => int.Parse(i)).ToList();

New implementation...