Message-ID: <842776313.753.1427477243136.JavaMail.firstname.lastname@example.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_752_1786063497.1427477243135" ------=_Part_752_1786063497.1427477243135 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Here is a summary of boo's built-in functions. The actual source= code underlying these functions is in Boo/Lang/Builtins.cs.
array is a function used to create empty arrays or convert IEnumerable a= nd ICollection objects to arrays. See Lists And Arrays for more info.
Converts an IEnumerable object to a non-specific (type of System.Object)= array.
Converts any object that implements ICollection to an array of Type.
Converts any object that impelements IEnumerable to an array of Type.
Creates an empty array of the specified size.
BooVersion is a builtin property that returns the current version of boo= that is running. It returns a System.Version class. See Getting Boo Version for more info.
enumerate() is useful when you want to keep a running count while loopin= g through items using a for loop:
Returns a string of input that originates from Console.ReadLine() - AKA,= "Standard Input."
The equivilent of Console.ReadLine(). See also prompt() below.
Usually not necessary, this builtin returns any Enumerator it can find i= n the object passed. For loops do this for you.
Always returning a string, join is a function that will walk through an = enumerable object and put all of those elements into one string.
Joins all of the elements in enumerable into one string, using a single = space (ASCII Code: 32) between elements.
The same as join(enumerable as IEnumerable), except that seperator defin= es what character seperates each element in enumerable.
map returns an enumerable object that applies a specific function to eac= h element in an enumerable object.
Taking an enumerable object such as a list or a collection, it returns a= n IEnumerable object that applies "function" to each element in t= he array.
See Multidimensional Ar= rays for more info, but here is a basic example:
Creates a multidimensional array of type elementType with the specificat= ions of length.
Prints an object to Standard Out. The equivilent of Console.WriteLine
The equivilent of Console.WriteLine()
Prompts the user for information.
Prints query to standard output, then waits for a user to 'respond.' Ret= urns a string containing what the user has typed.
A mysterious, somewhat exciting function that returns an enumerable obje= ct containing a list of elements such as 1 to 10 or 0 to 5 or 77 to 6.
Returns an IEnumerable object that contains elements from 0 to max - 1.<= /p>
Returns an IEnumerable object that contains elements from begin to end -= 1.
Returns an IEnumerable object that contains all of the elements from beg= in to end - 1 that match the interval of step.
Returns items in an enumerable in reverse order.
shell is used for invoking processes and inspecting their output.
Invoke an application (filename) with the arguments (arguments) specifie= d. Returns a string containing the program's output to Standard Out (aka, t= he console)
Invoke an application (filename) with an array of arguments (arguments);= returns a string containing program's output.
Starts a process specified by filename with the arguments provided and r= eturns a Process object representing the newly born process.
zip returns an IEnumerable object that interleaves the two arrays.
zip will return an IEnumerable object, wherein each element of the IEnum= erable object will be a one dimensional array containing two elements; the = first element will be an element located in "firstNames" and the = second will be an element located in "lastNames."