1Builtins.createString(3kaya) Kaya module referenceBuiltins.createString(3kaya)
2
3
4
6 Builtins::createString - Creates a string with particular memory allo‐
7 cation
8
10 String createString( Int len )
11
13 len The number of characters to allocate space for
14
16 Create an empty string, with initial space for len characters. Use
17 this to avoid unnecessary reallocation if you know or can compute the
18 length of a string in advance.
19
20 Using this function can save time and memory in Kaya programs, but gen‐
21 erally the default memory allocation will be adequate - save this for
22 the optimisation stage.
23
25 Kaya standard library by Edwin Brady, Chris Morris and others
26 (kaya@kayalang.org). For further information see http://kayalang.org/
27
29 The Kaya standard library is free software; you can redistribute it
30 and/or modify it under the terms of the GNU Lesser General Public
31 License (version 2.1 or any later version) as published by the Free
32 Software Foundation.
33
35 Array.createArray (3kaya)
36
37
38
39Kaya December 2010 Builtins.createString(3kaya)