/// <summary> /// Try accessing second element or return false /// </summary> public static bool TrySecond <T>(IEnumerable <T> e, out T value) { return(Numbered.TryNth(e, 1, out value)); }
/// <summary> /// Try accessing third element or return false /// </summary> public static bool TryThird <T>(IEnumerable <T> e, out T value) { return(Numbered.TryNth(e, 2, out value)); }
/// <summary> /// Try accessing first element or return false /// </summary> public static bool TryFirst <T>(IEnumerable <T> e, out T value) { return(Numbered.TryNth(e, 0, out value)); }