How to use this tool
Background: Arrays
Arrays are commonly used in programming languages to hold multiple entries of a particular type of data. While very useful, they can be a pain to initialize due to complexity, formatting, or amount of data to be stored. This tool seeks to simplify that process greatly.
Input
To begin using the tool, work from left to right. You will want to enter in data to be set into an array. This is the gray box in the 'Input' column. You may enter each entry separated by a newline (hitting enter), or by some other token which can be set using the 'Incoming Separator' option. This is useful if you are copy-pasting a list from somewhere else. (Try copy-pasting this sentence into the input box and setting 'Space' as the Incoming Separator).
Numeric Range: You can also generate an array consisting of a series of numbers by utilizing the 'Numeric Range' feature.
Formatting
The middle column contains options for formatting of the output (final array). Since there is no standardized array formatting between languages, some of the most common ones were included int he 'Templates' drop down menu.
You can also enter in your own custom enclosures (what characters surround the entire array) and encapsulation (what characters surround each entry in the array).
Output
The generated array appears in the large text box on the right. The output is live - every key pressed or option chosen will cause an update. Occasionally, a large calculation may cause the output to update slowly (this is normal).
Attention: Javascript must be enabled for this application to work