Collection some elements

Aus ExpeccoWiki

Wechseln zu: Navigation, Suche

Schema

Collection some elements.jpg

Description

Output a slice of some elements copied from the inCollection (1.7.1). The indices are 1-based, as in Smalltalk or natural languages.

Example

Given the Array [ 10 20 30 40 50 60] as input, 2 as startIndex, 5 as endIndex, the output will receive the Array: [ 30 40 50].

If the input is the String 'hello World', and the same indices, the output will be 'llo'.

Be reminded, that Strings are also a kind of Collection; therefore, all Collection-function-blocks also operate without further conversion on String and ByteArray data.



Back to Standard Library.
Previous: Collection [ NewSortedCollection ]
Next: Collection [ First N Elements ]


Meine Werkzeuge