Difference between revisions of "Core.Actions.ListRemoveItems"

From emotive
Jump to navigation Jump to search
(Created page with "Category:Core == Classification == {{ClassificationActivity | ListRemoveItems | Deleting one or more items at a specific location in a list | Action | Core|OTX Core...")
 
Line 2: Line 2:
 
== Classification ==
 
== Classification ==
 
{{ClassificationActivity | ListRemoveItems | Deleting one or more items at a specific location in a list | [[Action]] | [[Core|OTX Core library]] | [[ListModifiers related actions]] | [[OutOfBoundsException]] |}}
 
{{ClassificationActivity | ListRemoveItems | Deleting one or more items at a specific location in a list | [[Action]] | [[Core|OTX Core library]] | [[ListModifiers related actions]] | [[OutOfBoundsException]] |}}
 +
 +
== OTL Syntax ==
 +
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 +
ListRemoveItems(ListVariable, IntegerTerm, IntegerTerm);
 +
</syntaxhighlight>
  
 
== Description ==
 
== Description ==
Line 13: Line 18:
 
{{TableRowPropertie1| Index| [[Integer]] | [[Term]] | - | [1] | Position in the list (zero based) from which the items are deleted}}
 
{{TableRowPropertie1| Index| [[Integer]] | [[Term]] | - | [1] | Position in the list (zero based) from which the items are deleted}}
 
|}
 
|}
 +
 +
== OTL Examples ==
 +
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 +
public procedure main()
 +
{
 +
  List<Integer> List1 = {1, 2, 3};
 +
 +
  ListRemoveItems(List1, 0, 3);
 +
}
 +
</syntaxhighlight>
  
 
== See also ==
 
== See also ==

Revision as of 09:09, 2 February 2015

Classification

Name ListRemoveItems
Short Description Deleting one or more items at a specific location in a list
Class Action
Extension OTX Core library
Group ListModifiers related actions
Exceptions OutOfBoundsException
Checker Rules
Standard Compliant Yes

OTL Syntax

ListRemoveItems(ListVariable, IntegerTerm, IntegerTerm);

Description

The OTX ListRemoveItems activity deletes one or more elements at a specified position in a list.

Properties

Name Data Type Class Default Cardinality Description
List List Variable - [1] List of items from which the items are deleted
Count Integer Term - [1] Number of items which will be deleted
Index Integer Term - [1] Position in the list (zero based) from which the items are deleted

OTL Examples

public procedure main()
{
   List<Integer> List1 = {1, 2, 3};

   ListRemoveItems(List1, 0, 3);
}

See also

Assignment
ProcedureCall
ShiftRight
ShiftLeft
SetBit
ReplaceSubByteField
AppendByteField
ListConcatenate
ListAppendItems
ListInsertItems
ListClear
MapUnion
MapPutItems
MapRemoveItems
MapClear