27.07.2013 Views

2 Why We Need Model-Based Testing

2 Why We Need Model-Based Testing

2 Why We Need Model-Based Testing

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendices 301<br />

of elements. The data type Sequence is better suited to frequent addition or<br />

deletion and recursive subdivision via Head and Tail operations.<br />

Last<br />

Returns the last element of the current sequence.<br />

Tail<br />

Returns the subsequence of the current sequence where the first element is<br />

removed. Throws an exception if the sequence is empty.<br />

etc. . . .<br />

Several more properties are described in the library documentation.<br />

Fields<br />

EmptySequence<br />

The empty sequence of sort T.<br />

Remarks<br />

Sequences contain indexable elements. Sequences are similar to ArrayLists, but<br />

unlike ArrayLists, they are immutable. Sequences are implemented as doubly linked<br />

lists (concatenation to the beginning or end is constant time). Lookup is linear time;<br />

if possible, callers should use foreach(T val in sequence)... instead of for(int<br />

i = 0; i < sequence.Count; i += 1) ... sequence[i]...<br />

A.2.5 Value array<br />

ValueArray<br />

Immutable type that provides structural equality for arrays.<br />

Syntax<br />

public sealed class ValueArray : CollectionValue<br />

Constructors<br />

ValueArray(T[])<br />

Methods<br />

The library documentation describes the methods of this type. They are similar to<br />

the methods for the other N<strong>Model</strong> collection types.<br />

Properties<br />

The following entries describe some of the methods of this type. Several more are<br />

described in the library documentation.<br />

more free ebooks download links at:<br />

http://www.ebook-x.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!