.\" This man page is automatically generated using .\" kayadoc2man from the Kaya development tools and the -xmldocs compile .\" option. Editing it directly is not encouraged. .\" It is under the same license as the source .k file that it was .\" generated from. .TH "Array.subarray" "3kaya" "August 2014" "Kaya" "Kaya module reference" .SH "NAME" Array::subarray \- Return a subarray .SH "SYNOPSIS" .B [a] subarray( \fI[a] array, Int pos, Int n\fP .B ")" .SH "ARGUMENTS" .PP .B "array" The array to act on .PP .B "pos" The starting index .PP .B "n" The number of elements to retrieve .SH "DESCRIPTION" .PP Return the subarray starting at position \fIpos\fP , \fIn\fP elements long. An Exception is thrown if the subarray will not fit entirely within the array. .IP "" -4 array = [1,2,3,4,5,6,7]; sub = subarray(array,3,2); // sub = [4,5] .SH "AUTHORS" Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/ .SH LICENSE The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation. .SH "RELATED" .PD 0 .PP .B "Array.remove"(3kaya) .PP .B "Prelude.substr"(3kaya) .PD 0.4v