예제 #1
0
 public static SNumber NumberListAverage(SNumberList nl)
 {
     return(new SNumber(nl.Value.Average()));
 }
예제 #2
0
 public static SNumber NumberListMin(SNumberList nl)
 {
     return(new SNumber(nl.Value.Min()));
 }
예제 #3
0
 public static SNumber NumberListSum(SNumberList nl)
 {
     return(new SNumber(nl.Value.Sum()));
 }
예제 #4
0
 public static SNumber NumberListGetByIndex(SNumberList nl, SNumber index)
 {
     return(new SNumber(nl.Value[(int)index.Value - 1]));
 }
예제 #5
0
 public static SNumber NumberListGetCount(SNumberList nl)
 {
     return(new SNumber(nl.Value.Count));
 }
예제 #6
0
 public static SBool NumberListIsNotEmpty(SNumberList nl)
 {
     return(new SBool(nl.Value.Any()));
 }
예제 #7
0
 public static SBool NumberListDoesNotContainNumber(SNumberList nl, SNumber n)
 {
     return(new SBool(!nl.Value.Contains(n.Value)));
 }