Functions of ballerina.lang.arrays package
function copyOf(double[] doubleArray) (double[] )
Copies the specified double array
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
doubleArray | double[] | The array to be copied |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
double[] | double[]: A copy of the specified array |
function copyOf(float[] floatArray) (float[] )
Copies the specified float array
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
floatArray | float[] | The array to be copied |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
float[] | float[]: A copy of the specified array |
function copyOf(int[] intArray) (int[] )
Copies the specified integer array
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
intArray | int[] | The array to be copied |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
int[] | int[]: A copy of the specified array |
function copyOf(json[] jsonArray) (json[] )
Copies the specified JSON array
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
jsonArray | json[] | The array to be copied |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
json[] | json[]: A copy of the specified array |
function copyOf(long[] longArray) (long[] )
Copies the specified long array
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
longArray | long[] | The array to be copied |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
long[] | long[]: A copy of the specified array |
function copyOf(message[] messageArray) (message[] )
Copies the specified message object array
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
messageArray | message[] | The array to be copied |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message[] | message[]: A copy of the specified array |
function copyOf(string[] stringArray) (string[] )
Copies the specified string array
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
stringArray | string[] | The array to be copied |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
string[] | string[]: A copy of the specified array |
function copyOf(xml[] xmlArray) (xml[] )
Copies the specified XML array
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
xmlArray | xml[] | The XML array to be copied |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
xml[] | xml[]: A copy of the specified array |
function copyOfRange(double[] doubleArray, int from, int to) (double[] )
Copies the specified range of the specified double array
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
doubleArray | double[] | The double array from which the range will be copied |
from | int | The initial index of the range |
to | int | The final index of the range |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
double[] | double[]: A new array with the specified range from the original array |
function copyOfRange(float[] floatArray, int from, int to) (float[] )
Copies the specified range of the specified float array
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
floatArray | float[] | The float array from which the range will be copied |
from | int | The initial index of the range |
to | int | The final index of the range |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
float[] | float[]: A new array with the specified range from the original array |
function copyOfRange(int[] intArray, int from, int to) (int[] )
Copies the specified range of the specified integer array
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
intArray | int[] | The integer array from which the range will be copied |
from | int | The initial index of the range |
to | int | The final index of the range |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
int[] | int[]: A new array with the specified range from the original array |
function copyOfRange(json[] jsonArray, int from, int to) (json[] )
Copies the specified range of the specified JSON array
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
jsonArray | json[] | The JSON array from which the range will be copied |
from | int | The initial index of the range |
to | int | The final index of the range |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
json[] | json[]: A new array with the specified range from the original array |
function copyOfRange(long[] longArray, int from, int to) (long[] )
Copies the specified range of the specified long array
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
longArray | long[] | The long array from which the range will be copied |
from | int | The initial index of the range |
to | int | The final index of the range |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
long[] | long[]: A new array with the specified range from the original array |
function copyOfRange(message[] messageArray, int from, int to) (message[] )
Copies the specified range of the specified message object array
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
messageArray | message[] | The message object array from which the range will be copied |
from | int | The initial index of the range |
to | int | The final index of the range |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message[] | message[]: A new array with the specified range from the original array |
function copyOfRange(string[] stringArray, int from, int to) (string[] )
Copies the specified range of the specified string array
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
stringArray | string[] | The string array from which the range will be copied |
from | int | The initial index of the range |
to | int | The final index of the range |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
string[] | string[]: A new array with the specified range from the original array |
function copyOfRange(xml[] xmlArray, int from, int to) (xml[] )
Copies the specified range of the specified XML array
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
xmlArray | xml[] | The XML array from which the range will be copied |
from | int | The initial index of the range |
to | int | The final index of the range |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
xml[] | xml[]: A new array with the specified range from the original array |
function length(double[] doubleArray) (int )
Returns the length of the specified double array
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
doubleArray | double[] | The double array |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
int | The length of the specified array |
function length(float[] floatArray) (int )
Returns the length of the specified float array
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
floatArray | float[] | The float array |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
int | The length of the specified array |
function length(int[] intArray) (int )
Returns the length of the specified integer array
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
intArray | int[] | The integer array |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
int | The length of the specified array |
function length(json[] jsonArray) (int )
Returns the length of the specified JSON array
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
jsonArray | json[] | The JSON array |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
int | The length of the specified array |
function length(long[] longArray) (int )
Returns the length of the specified long array
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
longArray | long[] | The long array |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
int | The length of the specified array |
function length(message[] messageArray) (int )
Returns the length of the specified message object array
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
messageArray | message[] | The message object array |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
int | The length of the specified array |
function length(string[] stringArray) (int )
Returns the length of the specified string array
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
stringArray | string[] | The string array |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
int | The length of the specified array |
function length(xml[] xmlArray) (int )
Returns the length of the specified XML array
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
xmlArray | xml[] | The XML array |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
int | The length of the specified array |
function sort(string[] arr) (string[] )
Sorts the specified string array
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
arr | string[] | The string array to be sorted |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
string[] | string[]): The sorted array |