Category:Wren-array: Difference between revisions

Changed blurb following addition of CharArray class.
(Created page for 'Wren-array' module.)
 
(Changed blurb following addition of CharArray class.)
 
(3 intermediate revisions by the same user not shown)
Line 1:
{{library}}
'''Wren-array''' is a module which enables fixed sized arrays to be created in the Wren programming language. Although the size of the array is fixed, the elements themselves can be mutated. It consists of twofive classes: Array, ArrayType, BitArray, ByteArray and ArrayTypeCharArray. The lattersecond of these enables one to create a named type which inherits from Array dynamically at runtime and the third, fourth and fifth classes enable one to create a compressed array of boolean, byte values and Latin-1 character values, respectively. CharArray is in effect a limited type of mutable string (normally strings in Wren are immutable).
 
It is the twenty-eighth in a series of modules (listed on the language's [https[://rosettacode.org/wiki/Category:Wren |main page]]) designed to assist with writing Rosetta Code tasks so the same code does not have to be written or copy/pasted time and time again thereby bloating a task's script code unnecessarily.
 
To use it you need to copy the source code (in the [https[://rosettacode.org/wiki/Category_talk:Wren-array |talk page]]) to a text file called ''array.wren'' and place this in the same directory as the importing script so the command line interpreter can find it.
 
As there is a dependency on the ''Wren-check'' module, you also need to copy that (if it is not already present) to the same directory as described [https[://rosettacode.org/wiki/Category:Wren-check |here]]. There is also a dependency on the Meta module which is an optional part of Wren's standard library but is included in Wren-cli by default.
9,476

edits