public static SString StringListGetByIndex(SStringList sl, SNumber index) { return(new SString(sl.Value[(int)index.Value - 1])); }
public static SNumber StringListGetCount(SStringList sl) { return(new SNumber(sl.Value.Count)); }
public static SBool StringListDoesNotContainStringIgnoringCase(SStringList sl, SString s) { return(new SBool(!sl.Value.Any(i => i.Equals(s.Value, StringComparison.OrdinalIgnoreCase)))); }
public static SBool StringListIsNotEmpty(SStringList sl) { return(new SBool(sl.Value.Any())); }
public static SBool StringListContainsString(SStringList sl, SString s) { return(new SBool(sl.Value.Any(i => i.Equals(s.Value, StringComparison.Ordinal)))); }