Set type
Represents a set of itemsDirect parent types
- Eachable1
- Eachable which each() calls the callback with one argument
Direct subtypes: 16
Methods
- +(a:Set, b:Set) Source: autoload/Set.ngs:52
- -(a:Set, b:Set) Source: autoload/Set.ngs:46
- <=(a:Set, b:Set) Source: autoload/Set.ngs:58
- Check whether all values in a are also in b
- Bool(s:Set) Source: autoload/Set.ngs:39
- Check whether the set is not empty
- copy(s:Set) Source: autoload/Set.ngs:66
- each(s:Set, cb:Fun) Source: autoload/Set.ngs:30
- Call cb for each value in the set
- in(x:Any, s:Set) Source: autoload/Set.ngs:36
- Check if the value is in the set
- init(s:Set) Source: autoload/Set.ngs:7
- init(s:Set, e:Eachable1) Source: autoload/Set.ngs:12
- inspect(a:Set) Source: autoload/Set.ngs:73
- len(s:Set) Source: autoload/Set.ngs:25
- Get number of items in the set
- push(s:Set, v:Any) Source: autoload/Set.ngs:19
- Add an element to the set
- Str(s:Set) Source: autoload/Set.ngs:42
- Convert the set to a human-readable representation