Set type
Represents a set of itemsDirect parent types
- Eachable1
- Eachable which each() calls the callback with one argument
Direct subtypes: 17
Methods
- +(a:Set, b:Set) Source: stdlib.ngs:2221
- -(a:Set, b:Set) Source: stdlib.ngs:2215
- <=(a:Set, b:Set) Source: stdlib.ngs:2234
- Check whether all values in a are also in b
- ==(a:Set, b:Set) Source: stdlib.ngs:2226
- >=(a:Set, b:Set) Source: stdlib.ngs:2242
- Check whether all values in b are also in a
- Bool(s:Set) Source: stdlib.ngs:2208
- Check whether the set is not empty
- collector(s:Set, body:Fun) Source: stdlib.ngs:2254
- Defines collector { ... collect(...) ... } behaviour for Set.
- copy(s:Set) Source: stdlib.ngs:2259
- Make shallow copy of a Set
- each(s:Set, cb:Fun) Source: stdlib.ngs:2201
- Call cb for each value in the set
- in(x:Any, s:Set) Source: stdlib.ngs:2205
- Check if the value is in the set
- init(s:Set) Source: stdlib.ngs:2182
- init(s:Set, e:Eachable1) Source: stdlib.ngs:2187
- inspect(path:Arr, a:Set) Source: stdlib.ngs:2247
- Iter(s:Set)
- Iterator for Set. Currently implemented as ArrIter for the Set elements.
- len(s:Set) Source: stdlib.ngs:2197
- Get number of items in the set
- push(s:Set, v:Any) Source: stdlib.ngs:2193
- Add an element to the set
- Str(s:Set) Source: stdlib.ngs:2211
- Convert the set to a human-readable representation