Nu Class Reference

NSArray Extensions

NSArray extensions for Nu programming.

Declared in: tools/nuke, objc/Nu.h



Methods

+ (NSArray *) arrayWithList: (id) list
Creates an array that contains the contents of a specified list.

in objc/Nu.h

- (NSArray *) sortedArrayUsingBlock: (NuBlock *) block
Return a sorted array using the specified block to compare array elements. The block should return -1, 0, or 1.

in objc/Nu.h

- (id) eachInReverse: (id) callable
Iterate over each member of an array in reverse order and beginning with the lastObject, evaluating the provided block for each member.

in objc/Nu.h

- (id) reduceLeft: (id) callable
from: (id) initial
Repeatedly apply a function of two arguments to the elements of an array, working from right to left and beginning with the specified inital value.

in objc/Nu.h

- (NuCell *) list
Convert an array into a list.

in objc/Nu.h

- (NSArray *) sort
Sort an array using its elements' compare: method.

in objc/Nu.h

- (id) maximum: (id) block
from: (id) initial
Get the element of an array with the maximum value (as obtained using the specified block).

in tools/nuke

- (id) join
Join the non-null members of an array into a string with array elements separated by spaces.

in tools/nuke