Parses the command line options.
Helper functions, absent from System.Array.
Return a fresh copy of [arr] with first [n] elements removed.
Return a fresh copy of [arr] with last [n] elements removed.
** Attention! It's inplace sort. */
Convert array of one type to other. (This is a alias for Map().)
Returns 'true' if at least one of the 'l' arrays's elements satisfies the condition 'f'.
Example of use:
NArray.Exists (array ["a", "b", "abc", "d", "e"], fun (x) { x.Length > 2 })
evaluates to 'true' as there is one string of length 3 on the list.
Filter elements to list.
Folds a function over an array.
Folds a function over an array, passing the array index as an additional parameter to the folded function parameters.
Returns 'true' if exactly all of the 'l' arrays's elements satisfy the condition 'f'.
Example of use:
NArray.ForAll (array [2, 4, 6, 8, 10], fun (x) { x % 2 == 0 })
evaluates to 'true' as all the array's elements are even integers.
Iterates a function over an array.
Iterates a function over an array, passing both the array index and value as the iterated function parameters.
Attention! It's inplace sort.
Cast array to covariant subtype.
Convert array to string.
Convert collection of one type to array of another type. (Alias for MapToArray)
Convert sequence of one type to array of another type. (Alias for MapToArray)
Convert a collection of one type to an array of another type.
Convert a sequence of one type to an array of another type.
Convert sequence to array with filtration.
Convert collection to array.
Convert sequence to array.
Convert sequence to array with filtration.
Concatenates strings from the list, inserting given separator between them.
Return [true] if [f] is returns [true] for any of the characters in the string [s].
Changes string into a corresponding list of characters.
Warning: this should not be used in performance critical parts of the program, because of list's memory overheads.
Return [true] if [f] is returns [true] for all of the characters in the string [s].
Constructs a string out of a list of characters.
Warning: this should not be used in performance critical parts of the program, because of list's memory overheads.
Call [f] for all characters in [s] in turn.
Call [f] for all characters in [s] in turn, passing the current index as the additional paramter.
Same as [Implode (List.Map (Explode (s), f))] but a lot faster.
Same as [Concat ("", List.Map (Explode (s), f))] but a lot faster.
Calls the given function on elements of given list, appending given separator to string builder between those calls.
NOTE: the `f' function should be taking `acc' as a parameter, so that this function looks more Fold-like.
Splits the string at positions of occurrence of one of the characters from the given list.
Splits the string at positions of occurrence of one of the characters from the given array.
Special methods for handling pairs (two-element tuples)
Returns the first element of a pair
Returns the second element of a pair
Swaps the elements of a pair, creating a new pair.
Command line options handling.