Collection first n elements
Aus ExpeccoWiki
Inhaltsverzeichnis |
Schema
Description
Output the first N elements of the inCollection.
Example
Given the Array [ 10 20 30 40 50 60] as input, 3 as "n", the output will receive the Array: [ 10 20 30].
If the input is the String 'hello World', and the same "n" as input, the output will be 'hel'.
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.
Errors
An exception is raised, if the input collection is smaller than the given "n" (see the next blcok).
Back to Standard Library.
Previous: Collection [ Some Elements ]
Next: Collection [ First N existing Elements ]
