list
Call Signature
Section titled “Call Signature”list<
Item>(item,maxLength):ListCommandField<Item>
Up to maxLength values of one kind, such as a stroke’s points,
list(vector3(), 64), or a hand of chosen cards, list(integer(0, 51), 5). A list of entities is entities, and a list of lists is none.
In a trait’s schema, item is a default, as every trait field is: a
primitive, list(0, 52), or a factory, list((): Slot | null => null, 40), whose type is the item’s. The list starts empty; item is what a
new slot holds as resize grows it. Its changes travel as operations,
one push one operation on the wire, and editList writes it. An item
is plain data: no entity, vector or other class.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
Item extends ListItemField |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
item |
Item |
maxLength |
number |
Returns
Section titled “Returns”ListCommandField<Item>
Call Signature
Section titled “Call Signature”list(
item,maxLength):ListSchemaField<number>
Up to maxLength values of one kind, such as a stroke’s points,
list(vector3(), 64), or a hand of chosen cards, list(integer(0, 51), 5). A list of entities is entities, and a list of lists is none.
In a trait’s schema, item is a default, as every trait field is: a
primitive, list(0, 52), or a factory, list((): Slot | null => null, 40), whose type is the item’s. The list starts empty; item is what a
new slot holds as resize grows it. Its changes travel as operations,
one push one operation on the wire, and editList writes it. An item
is plain data: no entity, vector or other class.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
item |
number |
maxLength |
number |
Returns
Section titled “Returns”ListSchemaField<number>
Call Signature
Section titled “Call Signature”list(
item,maxLength):ListSchemaField<string>
Up to maxLength values of one kind, such as a stroke’s points,
list(vector3(), 64), or a hand of chosen cards, list(integer(0, 51), 5). A list of entities is entities, and a list of lists is none.
In a trait’s schema, item is a default, as every trait field is: a
primitive, list(0, 52), or a factory, list((): Slot | null => null, 40), whose type is the item’s. The list starts empty; item is what a
new slot holds as resize grows it. Its changes travel as operations,
one push one operation on the wire, and editList writes it. An item
is plain data: no entity, vector or other class.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
item |
string |
maxLength |
number |
Returns
Section titled “Returns”ListSchemaField<string>
Call Signature
Section titled “Call Signature”list(
item,maxLength):ListSchemaField<boolean>
Up to maxLength values of one kind, such as a stroke’s points,
list(vector3(), 64), or a hand of chosen cards, list(integer(0, 51), 5). A list of entities is entities, and a list of lists is none.
In a trait’s schema, item is a default, as every trait field is: a
primitive, list(0, 52), or a factory, list((): Slot | null => null, 40), whose type is the item’s. The list starts empty; item is what a
new slot holds as resize grows it. Its changes travel as operations,
one push one operation on the wire, and editList writes it. An item
is plain data: no entity, vector or other class.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
item |
boolean |
maxLength |
number |
Returns
Section titled “Returns”ListSchemaField<boolean>
Call Signature
Section titled “Call Signature”list<
Item>(item,maxLength):ListSchemaField<Item>
Up to maxLength values of one kind, such as a stroke’s points,
list(vector3(), 64), or a hand of chosen cards, list(integer(0, 51), 5). A list of entities is entities, and a list of lists is none.
In a trait’s schema, item is a default, as every trait field is: a
primitive, list(0, 52), or a factory, list((): Slot | null => null, 40), whose type is the item’s. The list starts empty; item is what a
new slot holds as resize grows it. Its changes travel as operations,
one push one operation on the wire, and editList writes it. An item
is plain data: no entity, vector or other class.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
Item |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
item |
() => Item & RefuseUnplainItem<Item> |
maxLength |
number |
Returns
Section titled “Returns”ListSchemaField<Item>