public static KeyValuePair <string, List <int> > GetRoverPosition(string value) { string[] array = StringHelper.SplitStringIntoArray(value, ' '); return(new KeyValuePair <string, List <int> >(array.Last(), array.Where(a => a != array.Last()).Select(a => AlwaysConvert.ToInt32(a)).ToList())); }
public static List <int> GetIntegretValuesFromStringArray(string value) { string[] array = StringHelper.SplitStringIntoArray(value, ' '); return(array.Select(a => AlwaysConvert.ToInt32(a)).ToList()); }