ERXArrayUtilities.SubarrayWithRangeOperator Class Reference
Inherits
er::extensions::foundation::ERXArrayUtilities::BaseOperator.
List of all members.
Detailed Description
Define an
NSArray.Operator for the key
subarrayWithRange.
This allows for key value paths like:
myArray.valueForKeyPath("@subarrayWithRange.20-3.someOtherPath");
Which in this case would return the three objects from
myArray, starting at the index of 20, before continuing to process
someOtherPath.
Note that the syntax for the range argument is
not startIndex-endIndex. The API matches that of NSRange. You must provide a start index and an array length.
- See also:
- BaseOperator
Constructor & Destructor Documentation
Member Function Documentation
| Object compute |
( |
NSArray<?> |
array, |
|
|
String |
keypath | |
|
) |
| | |
- Parameters:
-
| array | array to truncate |
| keypath | the key path to follow after truncation |
- Returns:
- the value produced by the keypath after truncating the array
The documentation for this class was generated from the following file: