tuple, ([]→string)?, [1..2]
Source: /avail/Avail/Foundation/Strings
Categories: Sets, Stringification
Answer a textual rendition of aTuple as a list. Use the serial comma, i.e., when aTuple contains three or more elements, then precede each element except for the first with a comma, but output either
and
or or
before the final element.
Position | Name | Type | Description | |
---|---|---|---|---|
Parameters | ||||
1 | aTuple | tuple | An arbitrary tuple. | |
2 | optionalEmptyText | ([]→string)? |
If specified, then the function to apply if the tuple is empty. If not specified, then ["(empty)"] will be used.
|
|
3 | mode | [1..2] |
If the mode is 1 , then output the word and before the final element of a multi-element tuple. If the mode is 2 , then output the word or before the final element of a multi-element tuple.
|
|
Returns | string | The requested textual rendition. |
tuple, ([]→string)?, [1..2]
Source: /avail/Avail/Foundation/Strings
Categories: Tuples, Stringification
Answer a textual rendition of aTuple as a list. Use the serial comma, i.e., when aTuple contains three or more elements, then precede each element except for the first with a comma, but output either
and
or or
before the final element.
Position | Name | Type | Description | |
---|---|---|---|---|
Parameters | ||||
1 | aTuple | tuple | An arbitrary tuple. | |
2 | optionalEmptyText | ([]→string)? |
If specified, then the function to apply if the tuple is empty. If not specified, then ["(empty)"] will be used.
|
|
3 | mode | [1..2] |
If the mode is 1 , then output the word and before the final element of a multi-element tuple. If the mode is 2 , then output the word or before the final element of a multi-element tuple.
|
|
Returns | string | The requested textual rendition. |