public static SNumber NumberListAverage(SNumberList nl) { return(new SNumber(nl.Value.Average())); }
public static SNumber NumberListMin(SNumberList nl) { return(new SNumber(nl.Value.Min())); }
public static SNumber NumberListSum(SNumberList nl) { return(new SNumber(nl.Value.Sum())); }
public static SNumber NumberListGetByIndex(SNumberList nl, SNumber index) { return(new SNumber(nl.Value[(int)index.Value - 1])); }
public static SNumber NumberListGetCount(SNumberList nl) { return(new SNumber(nl.Value.Count)); }
public static SBool NumberListIsNotEmpty(SNumberList nl) { return(new SBool(nl.Value.Any())); }
public static SBool NumberListDoesNotContainNumber(SNumberList nl, SNumber n) { return(new SBool(!nl.Value.Contains(n.Value))); }