---
category: [Administration & Integrations, Platform and Product Extensions, Platform and Product Extensions/Integration, Administration & Integrations/Custom Integrations & Apps, Platform and Product Extensions/Workday Extend]
keyword: [Extend, Orchestration Builder, Orchestrate, Orchestration]
nav: wcp_docs
parent_url: /wcp_docs/
title: >- 
  Reference: NumberList Member Functions
layout: subsection
---

<a id="section_N10022_N1001F_N10001"></a>
<b>Instance Type: NumberList</b>

<table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td>add</td><td>Arguments: <ul><li>element (Number)
</li></ul> <p>Return Type:</p><ul><li>NumberList
</li></ul> <p>Returns the list with the specified element appended.</p></td></tr><tr><td>addAll</td><td>Arguments: <ul><li>listToAppend (NumberList)
</li></ul> <p>Return Type:</p><ul><li>NumberList
</li></ul> <p>Returns a single list containing the elements of both lists combined.</p></td></tr><tr><td>average</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Number
</li></ul> Returns the average value of a number list.</td></tr><tr><td>contains</td><td>Arguments: <ul><li>element (Number)
</li></ul> <p>Return Type:</p><ul><li>Boolean
</li></ul> Returns true if the list contains the specified element.</td></tr><tr><td>distinct</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>NumberList
</li></ul> Returns a list of distinct elements in the list.</td></tr><tr><td>get</td><td>Arguments: <ul><li>index (Number)
</li></ul> <p>Return Type:</p><ul><li>Number
</li></ul> Returns the element at the specified index.</td></tr><tr><td>isEmpty</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Boolean
</li></ul> Returns true if the list is empty, otherwise returns false.</td></tr><tr><td>iterator</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>NumberIterator
</li></ul> <p>Returns an interator for elements in the list.</p></td></tr><tr><td>max</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Number
</li></ul> Returns the largest value in a number list.</td></tr><tr><td>min</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Number
</li></ul> Returns the lowest value in a number list.</td></tr><tr><td>mkString</td><td>Arguments: <ul><li>Separator (String)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a string formed from the entries in the list, separated by the specified separator.</p></td></tr><tr><td>prepend</td><td>Arguments: <ul><li>element (Number)
</li></ul> <p>Return Type:</p><ul><li>NumberList
</li></ul> <p>Returns the list with the specified element prepended.</p></td></tr><tr><td>reverse</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>NumberList
</li></ul> Returns the list with the order of its elements reversed.</td></tr><tr><td>size</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Number
</li></ul> Returns the number of items in the list.</td></tr><tr><td>sum</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Number
</li></ul> Returns the sum of the values in the number list.</td></tr><tr><td>toJsonArray</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Json
</li></ul> Returns the items in the list as a JSON array.</td></tr><tr><td>toString</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> Returns a string representation of the value.</td></tr></tbody></table><br/>

