Changes

Jump to: navigation, search

User:Dhhodgin

6 bytes added, 22:58, 18 October 2009
shorten()
Here is a list of code blocks I have written for the processing.js project
==== shorten() ====
Specification for processing [http://processing.org/reference/shorten_.html here].<br />
Arrays in JS have no type the elements in them can contain any type and do not all have to match. Arrays are also passed by reference which means a reference to the object is passed in not the entire object. so my code creates a new array and then copies the passed in array first and then pops one element off the new array and the newary object is returned. This is built to accept a processing type of String, int, boolean, char, byte, and float.
1
edit

Navigation menu