Chapter 57. objset
The objset is a full set implementation using binary trees to store set elements in sorted order (UNICODE order). New applications should use fastset instead, since it provides the same functionality only faster.
objset
Description
Type Tags
None
Object Value
Objects of type objset have no value, and it is an error to try to get or set this value.
objset.new()
Description
Prototype
objset
.new
(
objset
,
string me
)
name
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | objset | |
name | None | string |
Properties
Property | Type | Description |
---|---|---|
addelement | function | |
count | integer | |
deleteelement | function | |
difference | function | |
distinct | boolean | |
elements | objsetelementref | |
findelementbykey | function | |
getcount | function | |
getfirst | function | |
intersect | function | |
name | string | |
totalcount | integer | |
type | type | |
unite | function |
Methods
addelement()
Description
Prototype
objsetvar
.addelement
(
objset
,
string me
,
type(*) key
)
element
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | objset | |
key | None | string | |
element | None | type(*) |
deleteelement()
Description
Prototype
objsetvar
.deleteelement
(
objset
,
objsetelementref me
)
elementref
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | objset | |
elementref | None | objsetelementref |
difference()
Description
Prototype
objsetvar
.difference
(
objset
,
objset me
)
t
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | objset | |
t | None | objset |
findelementbykey()
Description
Prototype
objsetvar
.findelementbykey
(
objset
,
string me
)
key
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | objset | |
key | None | string |
getcount()
Description
Prototype
objsetvar
.getcount
(
objset
,
string me
)
key
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | objset | |
key | None | string |
getfirst()
Description
Prototype
objsetvar
.getfirst
(
objset
)
me
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | objset |
intersect()
Description
Prototype
objsetvar
.intersect
(
objset
,
objset me
)
t
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | objset | |
t | None | objset |
unite()
Description
Prototype
objsetvar
.unite
(
objset
,
objset me
)
t
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | objset | |
t | None | objset |