GenerativeComponents Help

TakeEnd

Returns a new list comprising the last "count" number of members in the list.

Examples

The three child lines that have the largest lengths.

(from ln in line01
    orderby ln.Length).TakeEnd(3)

The start points of the three child lines that have the largest lengths.

(from ln in line01
    orderby ln.Length).TakeEnd(3).StartPoint

The start points of the three child lines that have the largest lengths that do not exceed the maximum length.

(from ln in line01
    where ln.Length <= maxLength
    orderby ln.Length).TakeEnd(3).StartPoint