ballerina/lang.array : 0.0.0
Module Overview
The lang.array
module corresponds to the list
basic type.
Functions
[24]
'map | Applies a function to each member of an array and returns an array of the results. |
enumerate | Returns a new array consisting of index and member pairs. |
filter | Selects the members from an array for which a function returns true. |
forEach | Applies a function to each member of an array. |
fromBase16 | Returns the byte array that a string represents in Base16. |
fromBase64 | Returns the byte array that a string represents in Base64. |
indexOf | Returns the index of first member of an array that is equal to a given value if there is one. |
iterator | Returns an iterator over an array. |
lastIndexOf | Returns the index of last member of an array that is equal to a given value if there is one. |
length | Returns the number of members of an array. |
pop | Removes and returns the last member of an array. |
push | Adds values to the end of an array. |
reduce | Combines the members of an array using a combining function. |
remove | Removes a member of an array. |
removeAll | Removes all members of an array. |
reverse | Reverses the order of the members of an array. |
setLength | Changes the length of an array. |
shift | Removes and returns first member of an array. |
slice | Returns a subarray using a start index (inclusive) and an end index (exclusive). |
sort | Sorts an array. |
toBase16 | Returns the string that is the Base16 representation of an array of bytes. |
toBase64 | Returns the string that is the Base64 representation of an array of bytes. |
toStream | Returns a stream from the given array. |
unshift | Adds values to the start of an array. |
Enums
[1]
SortDirection | Direction for |
Types
[4]
AnydataType | A type parameter that is a subtype of |
OrderedType | Any ordered type is a subtype of this. |
Type | A type parameter that is a subtype of |
Type1 | A type parameter that is a subtype of |