|
![]() Quark Platform Documentation Version 1.7.0_0 Business Objects |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openquark.cal.module.Cal.Collections.CAL_Array.Functions
public static final class CAL_Array.Functions
This inner class (Functions) contains constants and methods related to binding to CAL functions in the Cal.Collections.Array module.
| Field Summary | |
|---|---|
static QualifiedName |
all
Name binding for function: all. |
static QualifiedName |
alternate
Name binding for function: alternate. |
static QualifiedName |
andArray
Name binding for function: andArray. |
static QualifiedName |
any
Name binding for function: any. |
static QualifiedName |
array0
Name binding for function: array0. |
static QualifiedName |
array1
Name binding for function: array1. |
static QualifiedName |
array2
Name binding for function: array2. |
static QualifiedName |
array3
Name binding for function: array3. |
static QualifiedName |
array4
Name binding for function: array4. |
static QualifiedName |
array5
Name binding for function: array5. |
static QualifiedName |
array6
Name binding for function: array6. |
static QualifiedName |
array7
Name binding for function: array7. |
static QualifiedName |
binarySearch
Name binding for function: binarySearch. |
static QualifiedName |
binarySearchBy
Name binding for function: binarySearchBy. |
static QualifiedName |
break_
Name binding for function: break. |
static QualifiedName |
breakAfter
Name binding for function: breakAfter. |
static QualifiedName |
chop
Name binding for function: chop. |
static QualifiedName |
compressBytes
Name binding for function: compressBytes. |
static QualifiedName |
concat
Name binding for function: concat. |
static QualifiedName |
decompressBytes
Name binding for function: decompressBytes. |
static QualifiedName |
delete
Name binding for function: delete. |
static QualifiedName |
deleteAt
Name binding for function: deleteAt. |
static QualifiedName |
deleteBy
Name binding for function: deleteBy. |
static QualifiedName |
deleteRange
Name binding for function: deleteRange. |
static QualifiedName |
drop
Name binding for function: drop. |
static QualifiedName |
dropWhile
Name binding for function: dropWhile. |
static QualifiedName |
elemIndex
Name binding for function: elemIndex. |
static QualifiedName |
elemIndices
Name binding for function: elemIndices. |
static QualifiedName |
filter
Name binding for function: filter. |
static QualifiedName |
filterIndexed
Name binding for function: filterIndexed. |
static QualifiedName |
find
Name binding for function: find. |
static QualifiedName |
findIndex
Name binding for function: findIndex. |
static QualifiedName |
findIndices
Name binding for function: findIndices. |
static QualifiedName |
foldLeft
Name binding for function: foldLeft. |
static QualifiedName |
foldLeft1
Name binding for function: foldLeft1. |
static QualifiedName |
foldLeft1Strict
Name binding for function: foldLeft1Strict. |
static QualifiedName |
foldLeftStrict
Name binding for function: foldLeftStrict. |
static QualifiedName |
foldRight
Name binding for function: foldRight. |
static QualifiedName |
foldRight1
Name binding for function: foldRight1. |
static QualifiedName |
fromList
Name binding for function: fromList. |
static QualifiedName |
fromListWith
Name binding for function: fromListWith. |
static QualifiedName |
fromString
Name binding for function: fromString. |
static QualifiedName |
indexOf
Name binding for function: indexOf. |
static QualifiedName |
indexOfFrom
Name binding for function: indexOfFrom. |
static QualifiedName |
inputPrimitive
Name binding for function: inputPrimitive. |
static QualifiedName |
insert
Name binding for function: insert. |
static QualifiedName |
insertArrayAt
Name binding for function: insertArrayAt. |
static QualifiedName |
insertAt
Name binding for function: insertAt. |
static QualifiedName |
insertBy
Name binding for function: insertBy. |
static QualifiedName |
isElem
Name binding for function: isElem. |
static QualifiedName |
isElemBy
Name binding for function: isElemBy. |
static QualifiedName |
isNotElem
Name binding for function: isNotElem. |
static QualifiedName |
last
Name binding for function: last. |
static QualifiedName |
lastIndexOf
Name binding for function: lastIndexOf. |
static QualifiedName |
lastIndexOfFrom
Name binding for function: lastIndexOfFrom. |
static QualifiedName |
length
Name binding for function: length. |
static QualifiedName |
makeArrayFromIndices
Name binding for function: makeArrayFromIndices. |
static QualifiedName |
map
Name binding for function: map. |
static QualifiedName |
mapIndexed
Name binding for function: mapIndexed. |
static QualifiedName |
maximum
Name binding for function: maximum. |
static QualifiedName |
maximumBy
Name binding for function: maximumBy. |
static QualifiedName |
merge
Name binding for function: merge. |
static QualifiedName |
mergeBy
Name binding for function: mergeBy. |
static QualifiedName |
minimum
Name binding for function: minimum. |
static QualifiedName |
minimumBy
Name binding for function: minimumBy. |
static QualifiedName |
orArray
Name binding for function: orArray. |
static QualifiedName |
outputPrimitive
Name binding for function: outputPrimitive. |
static QualifiedName |
periodize
Name binding for function: periodize. |
static QualifiedName |
product
Name binding for function: product. |
static QualifiedName |
replaceAll
Name binding for function: replaceAll. |
static QualifiedName |
replaceAt
Name binding for function: replaceAt. |
static QualifiedName |
replicate
Name binding for function: replicate. |
static QualifiedName |
replicateArray
Name binding for function: replicateArray. |
static QualifiedName |
reverse
Name binding for function: reverse. |
static QualifiedName |
sort
Name binding for function: sort. |
static QualifiedName |
sortBy
Name binding for function: sortBy. |
static QualifiedName |
span
Name binding for function: span. |
static QualifiedName |
spanInclusive
Name binding for function: spanInclusive. |
static QualifiedName |
splitAt
Name binding for function: splitAt. |
static QualifiedName |
startsWith
Name binding for function: startsWith. |
static QualifiedName |
startsWithBy
Name binding for function: startsWithBy. |
static QualifiedName |
subArray
Name binding for function: subArray. |
static QualifiedName |
subscript
Name binding for function: subscript. |
static QualifiedName |
sum
Name binding for function: sum. |
static QualifiedName |
take
Name binding for function: take. |
static QualifiedName |
takeWhile
Name binding for function: takeWhile. |
static QualifiedName |
testModule
Name binding for function: testModule. |
static QualifiedName |
toList
Name binding for function: toList. |
static QualifiedName |
toListWith
Name binding for function: toListWith. |
static QualifiedName |
toString
Name binding for function: toString. |
static QualifiedName |
unzip
Name binding for function: unzip. |
static QualifiedName |
unzip3
Name binding for function: unzip3. |
static QualifiedName |
unzip4
Name binding for function: unzip4. |
static QualifiedName |
updateAt
Name binding for function: updateAt. |
static QualifiedName |
zip
Name binding for function: zip. |
static QualifiedName |
zip3
Name binding for function: zip3. |
static QualifiedName |
zip4
Name binding for function: zip4. |
static QualifiedName |
zipWith
Name binding for function: zipWith. |
static QualifiedName |
zipWith3
Name binding for function: zipWith3. |
static QualifiedName |
zipWith4
Name binding for function: zipWith4. |
| Constructor Summary | |
|---|---|
CAL_Array.Functions()
|
|
| Method Summary | |
|---|---|
static SourceModel.Expr |
all(SourceModel.Expr predicate,
SourceModel.Expr array)
all predicate array returns Cal.Core.Prelude.True if the predicate function evaluates to Cal.Core.Prelude.True on all the
elements of the array (and the array is finite). |
static SourceModel.Expr |
alternate(SourceModel.Expr array1,
SourceModel.Expr array2)
Alternate items from the 2 arrays. |
static SourceModel.Expr |
andArray(SourceModel.Expr array)
andArray array returns Cal.Core.Prelude.True if every element of the array is Cal.Core.Prelude.True. |
static SourceModel.Expr |
any(SourceModel.Expr predicate,
SourceModel.Expr array)
any predicate array returns Cal.Core.Prelude.True if the predicate function evaluates to Cal.Core.Prelude.True on at least
one element of the array. |
static SourceModel.Expr |
array0()
Constructs an empty array. |
static SourceModel.Expr |
array1(SourceModel.Expr item)
Constructs an array of one item. |
static SourceModel.Expr |
array2(SourceModel.Expr item1,
SourceModel.Expr item2)
Constructs an array of two items. |
static SourceModel.Expr |
array3(SourceModel.Expr item1,
SourceModel.Expr item2,
SourceModel.Expr item3)
Constructs an array of three items. |
static SourceModel.Expr |
array4(SourceModel.Expr item1,
SourceModel.Expr item2,
SourceModel.Expr item3,
SourceModel.Expr item4)
Constructs an array of four items. |
static SourceModel.Expr |
array5(SourceModel.Expr item1,
SourceModel.Expr item2,
SourceModel.Expr item3,
SourceModel.Expr item4,
SourceModel.Expr item5)
Constructs an array of five items. |
static SourceModel.Expr |
array6(SourceModel.Expr item1,
SourceModel.Expr item2,
SourceModel.Expr item3,
SourceModel.Expr item4,
SourceModel.Expr item5,
SourceModel.Expr item6)
Constructs an array of six items. |
static SourceModel.Expr |
array7(SourceModel.Expr item1,
SourceModel.Expr item2,
SourceModel.Expr item3,
SourceModel.Expr item4,
SourceModel.Expr item5,
SourceModel.Expr item6,
SourceModel.Expr item7)
Constructs an array of seven items. |
static SourceModel.Expr |
binarySearch(SourceModel.Expr array,
SourceModel.Expr value)
Searches the array for the specified value using the binary search algorithm. |
static SourceModel.Expr |
binarySearchBy(SourceModel.Expr comparisonFunction,
SourceModel.Expr array,
SourceModel.Expr value)
Searches the array for the specified value using the binary search algorithm. |
static SourceModel.Expr |
break_(SourceModel.Expr predicate,
SourceModel.Expr array)
break predicate array breaks up array into a pair of arrays. |
static SourceModel.Expr |
breakAfter(SourceModel.Expr predicate,
SourceModel.Expr array)
breakAfter predicate array breaks up array into a pair of arrays. |
static SourceModel.Expr |
chop(int chopLength,
SourceModel.Expr arrayToChop)
|
static SourceModel.Expr |
chop(SourceModel.Expr chopLength,
SourceModel.Expr arrayToChop)
Chops up an Array into equals subarrays of length chopLength. |
static SourceModel.Expr |
compressBytes(SourceModel.Expr byteArray)
Returns a compressed version of a byte array. |
static SourceModel.Expr |
concat(SourceModel.Expr array)
An Array version of the regular concat function
See Also:
Functions and Class Methods: Cal.Core.Prelude.concat
Type Constructors: Cal.Collections.Array.Array
|
static SourceModel.Expr |
decompressBytes(SourceModel.Expr byteArray)
Returns an uncompressed version of a compressed byte array. |
static SourceModel.Expr |
delete(SourceModel.Expr element,
SourceModel.Expr array)
delete x array returns the array with the first element equivalent to x removed. |
static SourceModel.Expr |
deleteAt(int index,
SourceModel.Expr array)
|
static SourceModel.Expr |
deleteAt(SourceModel.Expr index,
SourceModel.Expr array)
Removes the array item at the specified index. |
static SourceModel.Expr |
deleteBy(SourceModel.Expr eq,
SourceModel.Expr element,
SourceModel.Expr array)
deleteBy eq element array returns the array with the first element equivalent to x (under eq) removed. |
static SourceModel.Expr |
deleteRange(int fromIndex,
int toIndex,
SourceModel.Expr array)
|
static SourceModel.Expr |
deleteRange(SourceModel.Expr fromIndex,
SourceModel.Expr toIndex,
SourceModel.Expr array)
Removes the array items at the specified range of indices. |
static SourceModel.Expr |
drop(int nElementsToDrop,
SourceModel.Expr array)
|
static SourceModel.Expr |
drop(SourceModel.Expr nElementsToDrop,
SourceModel.Expr array)
drop nElements array drops the first nElements elements of the array and returns the remaining elements |
static SourceModel.Expr |
dropWhile(SourceModel.Expr dropWhileTrueFunction,
SourceModel.Expr array)
dropWhile dropWhileTrueFunction list drops the longest prefix of the array for which dropWhileTrueFunction
is Cal.Core.Prelude.True for each element. |
static SourceModel.Expr |
elemIndex(SourceModel.Expr value,
SourceModel.Expr array)
Returns the index of the first element in the given array which is equal to the specified value, or Cal.Core.Prelude.Nothing if there is no such element. |
static SourceModel.Expr |
elemIndices(SourceModel.Expr x,
SourceModel.Expr array)
Returns the indices of all elements of the specified array equal to the specified value, in ascending order. |
static SourceModel.Expr |
filter(SourceModel.Expr keepIfTrueFunction,
SourceModel.Expr array)
filter keepIfTrueFunction array applies the predicate function to each element of the array, and returns
the array of elements for which the predicate evaluates to Cal.Core.Prelude.True. |
static SourceModel.Expr |
filterIndexed(SourceModel.Expr keepIfTrueFunction,
SourceModel.Expr array)
filterIndexed keepIfTrueFunction array applies the predicate function keepIfTrueFunction to each
element of the array, and returns the array of elements for which the predicate evaluates to Cal.Core.Prelude.True. |
static SourceModel.Expr |
find(SourceModel.Expr predicate,
SourceModel.Expr array)
find predicate array returns the first value of array for which the predicate function is Cal.Core.Prelude.True,
if there is one, or Cal.Core.Prelude.Nothing otherwise. |
static SourceModel.Expr |
findIndex(SourceModel.Expr predicate,
SourceModel.Expr array)
findIndex predicate array returns the first index of array for which the predicate function is Cal.Core.Prelude.True,
if there is one, or Cal.Core.Prelude.Nothing otherwise. |
static SourceModel.Expr |
findIndices(SourceModel.Expr predicate,
SourceModel.Expr array)
Returns the indices of all elements satisfying the specified predicate, in ascending order. |
static SourceModel.Expr |
foldLeft(SourceModel.Expr foldFunction,
SourceModel.Expr initialValue,
SourceModel.Expr array)
foldLeft foldFunction initialValue list collapses or 'folds' the array down to a single result, starting
from the left of the array. |
static SourceModel.Expr |
foldLeft1(SourceModel.Expr foldFunction,
SourceModel.Expr array)
foldLeft1 is similar to Cal.Collections.Array.foldLeft, except that it uses the first element of the array as the initial value
in the folding process. |
static SourceModel.Expr |
foldLeft1Strict(SourceModel.Expr foldFunction,
SourceModel.Expr array)
foldLeft1Strict is similar to Cal.Collections.Array.foldLeftStrict, except that it uses the first element of the array as
the initial value in the folding process. |
static SourceModel.Expr |
foldLeftStrict(SourceModel.Expr foldFunction,
SourceModel.Expr initialValue,
SourceModel.Expr array)
This is the strict version of Cal.Collections.Array.foldLeft. |
static SourceModel.Expr |
foldRight(SourceModel.Expr foldFunction,
SourceModel.Expr initialValue,
SourceModel.Expr array)
Similar to Cal.Collections.Array.foldLeft, except that the folding process on the array is started with its rightmost element. |
static SourceModel.Expr |
foldRight1(SourceModel.Expr foldFunction,
SourceModel.Expr array)
Similar to Cal.Collections.Array.foldLeft1, except that the folding process on the array is started with its rightmost element. |
static SourceModel.Expr |
fromList(SourceModel.Expr list)
Builds an array from a list. |
static SourceModel.Expr |
fromListWith(SourceModel.Expr f,
SourceModel.Expr list)
Builds an array from a list with the help of an element conversion function f. |
static SourceModel.Expr |
fromString(SourceModel.Expr string)
Converts a Cal.Core.Prelude.String to an Cal.Collections.Array.Array Cal.Core.Prelude.Char. |
static SourceModel.Expr |
fromString(String string)
|
static SourceModel.Expr |
indexOf(SourceModel.Expr valueToFind,
SourceModel.Expr array)
Finds the index of the first occurrence of valueToFind in array or -1 if the value does not occur. |
static SourceModel.Expr |
indexOfFrom(SourceModel.Expr valueToFind,
int fromIndex,
SourceModel.Expr array)
|
static SourceModel.Expr |
indexOfFrom(SourceModel.Expr valueToFind,
SourceModel.Expr fromIndex,
SourceModel.Expr array)
Finds the index of the first occurrence at index greater than or equal to fromIndex of valueToFind in array
or -1 if the value does not occur from fromIndex onwards. |
static SourceModel.Expr |
inputPrimitive(SourceModel.Expr arrayAsObject)
Inputs an array from a Java array. |
static SourceModel.Expr |
insert(SourceModel.Expr value,
SourceModel.Expr array)
This function takes an element and an array and inserts the element into the array at the last position where it is still less than or equal to the next element. |
static SourceModel.Expr |
insertArrayAt(int index,
SourceModel.Expr valuesToInsert,
SourceModel.Expr array)
|
static SourceModel.Expr |
insertArrayAt(SourceModel.Expr index,
SourceModel.Expr valuesToInsert,
SourceModel.Expr array)
Inserts values into a array at the specified index. |
static SourceModel.Expr |
insertAt(int index,
SourceModel.Expr value,
SourceModel.Expr array)
|
static SourceModel.Expr |
insertAt(SourceModel.Expr index,
SourceModel.Expr value,
SourceModel.Expr array)
Inserts a value into a array at the specified index. |
static SourceModel.Expr |
insertBy(SourceModel.Expr comparisonFunction,
SourceModel.Expr value,
SourceModel.Expr array)
This function takes an element and an array and inserts the element into the array at the last position where it is still less than or equal to the next element. |
static SourceModel.Expr |
isElem(SourceModel.Expr elementValue,
SourceModel.Expr array)
isElem elementValue array returns Cal.Core.Prelude.True if elementValue is an element of the array. |
static SourceModel.Expr |
isElemBy(SourceModel.Expr eq,
SourceModel.Expr x,
SourceModel.Expr array)
Returns whether a value is an element of an array, according to the specified equality comparison function. |
static SourceModel.Expr |
isNotElem(SourceModel.Expr elementValue,
SourceModel.Expr array)
isNotElem elementValue array returns Cal.Core.Prelude.True if elementValue is not an element of the array. |
static SourceModel.Expr |
last(SourceModel.Expr array)
Returns the last element of the specified array. |
static SourceModel.Expr |
lastIndexOf(SourceModel.Expr valueToFind,
SourceModel.Expr array)
Finds the index of the last occurrence of valueToFind in array or -1 if the value does not occur. |
static SourceModel.Expr |
lastIndexOfFrom(SourceModel.Expr valueToFind,
int fromIndex,
SourceModel.Expr array)
|
static SourceModel.Expr |
lastIndexOfFrom(SourceModel.Expr valueToFind,
SourceModel.Expr fromIndex,
SourceModel.Expr array)
Finds the index of the last occurrence at index less than or equal to fromIndex of valueToFind
in array or -1 if the value does not occur from fromIndex and earlier. |
static SourceModel.Expr |
length(SourceModel.Expr array)
Returns the length of the specified array. |
static SourceModel.Expr |
makeArrayFromIndices(int size,
SourceModel.Expr itemFunction)
|
static SourceModel.Expr |
makeArrayFromIndices(SourceModel.Expr size,
SourceModel.Expr itemFunction)
Creates an Array calling a function for each of the indices in the resultant array
See Also:
Type Constructors: Cal.Collections.Array.Array
|