300 Modeling Library Reference
LastIndexOf(T)
Returns the zero-based index of the last occurrence of the given object in the
sequence, or -1 if it doesn??™t occur.
Remove(T)
Returns a sequence that is identical to the current sequence but without the first
occurrence of the element given as the argument.
Reverse()
Returns a sequence whose elements are the same as the current sequence but in
reverse order.
Unzip
(Sequence>)
(Static method.) Returns a pair of sequences whose elements are drawn from a
sequence of pairs.
ZipSequence, Sequence
(Static method.) Returns a sequence of pairs of elements from the sequences
given as arguments.
etc. . . .
Many more methods are described in the library documentation.
Properties
The following entries describe some of the methods of this type. Several more are
described in the library documentation.
Count
Gets the number of elements contained in the sequence.
Front
Returns the subsequence of the current sequence where the last element is
removed.
Head
Returns the first element of the sequence. Throws an exception if the sequence
is empty.
IsEmpty
Returns true if the sequence has no elements. Returns false otherwise.
Item(int)
Gets the element at the specified index. This is the C# indexer operator. Note:
This is a linear-time lookup provided for convenience when sequences have only
a few elements or when accessing elements near the beginning or end of a larger
sequence.
Pages:
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389