Jonathan Jacky, Margus Veanes, Colin Campbell, Wolfram Schulte
"Model-Based Software Testing and Analysis with C#"
Sequence
(IEnumerable)
Constructs a sequence from the elements in a collection.
Sequence(T[])
Constructs a sequence from params arguments.
Methods
The following entries describe some of the methods of this type. Many more are
described in the library documentation.
AddFirst(T)
Returns a sequence whose Head is the element given as the argument and whose
Tail equals the current sequence.
AddLast(T)
Returns a sequence whose Front equals the current sequence and whose Last is
the element given as the argument.
BigConcatenate(IEnumerable>)
(Static method.) Distributed concatenation. Returns the sequence formed by
concatenating each sequence from a collection of sequences in turn. Returns the
empty sequence if the collection given as the argument is empty.
Concatentate(Sequence)
Sequence concatenation. Returns the sequence consisting of the elements of
the current sequence followed by the elements of the sequence given as the
argument. This is the same as the C# infix operator +.
Contains(T)
Tests whether the given element is found in the sequence.
IndexOf(T)
Returns the zero-based index of the first occurrence of the given element in the
sequence, or -1 if it doesn??™t occur.
IsPrefixOf(Sequence)
Returns true if the elements of the current sequence are the first elements of the
sequence given as the argument, and false otherwise.
Pages:
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388