.\" 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.addAt" "3kaya" "August 2014" "Kaya" "Kaya module reference" .SH "NAME" Array::addAt \- Add an element to an array .SH "SYNOPSIS" .B Void addAt( \fIvar [a] array, a elem, Int idx\fP .B ")" .SH "ARGUMENTS" .PP .B "array" The array to act on .PP .B "elem" The new element .PP .B "idx" The index of the element to add before .SH "DESCRIPTION" .PP Add (in-place) an element before position \fIidx\fP .IP "" -4 array = [1,2,3,4,5,6,7]; addAt(array,5,2); // array = [1,2,5,3,4,5,6,7]; .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.push"(3kaya) is equivalent to \fBidx = size(array) \fP .PP .B "Array.removeAt"(3kaya) .PP .B "Array.unshift"(3kaya) is equivalent to \fBidx = 0 \fP .PD 0.4v