struct LazyFilterIndex<Base : Collection>
Inheritance 
Comparable, Equatable
View Protocol Hierarchy →


Import  import Swift 
Instance Variables
The position corresponding to self
in the underlying collection.
Declaration
var base: Base.Index { get }
Instance Methods
Declaration
func !=(lhs: LazyFilterIndex<Base>, rhs: LazyFilterIndex<Base>) > Bool
Returns a Boolean value indicating whether the value of the first argument is less than that of the second argument.
This function is the only requirement of the Comparable
protocol. The
remainder of the relational operator functions are implemented by the
standard library for any type that conforms to Comparable
.
Parameters: lhs: A value to compare. rhs: Another value to compare.
Declaration
func <(lhs: LazyFilterIndex<Base>, rhs: LazyFilterIndex<Base>) > Bool
Returns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument.
Parameters: lhs: A value to compare. rhs: Another value to compare.
Declaration
func <=(lhs: LazyFilterIndex<Base>, rhs: LazyFilterIndex<Base>) > Bool
Returns a Boolean value indicating whether two values are equal.
Equality is the inverse of inequality. For any values a
and b
,
a == b
implies that a != b
is false
.
Parameters: lhs: A value to compare. rhs: Another value to compare.
Declaration
func ==(lhs: LazyFilterIndex<Base>, rhs: LazyFilterIndex<Base>) > Bool
Returns a Boolean value indicating whether the value of the first argument is greater than that of the second argument.
Parameters: lhs: A value to compare. rhs: Another value to compare.
Declaration
func >(lhs: LazyFilterIndex<Base>, rhs: LazyFilterIndex<Base>) > Bool
Returns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument.
Parameters: lhs: A value to compare. rhs: Another value to compare.
Declaration
func >=(lhs: LazyFilterIndex<Base>, rhs: LazyFilterIndex<Base>) > Bool
The
Index
used for subscripting aLazyFilterCollection
.The positions of a
LazyFilterIndex
correspond to those positionsp
in its underlying collectionc
such thatc[p]
satisfies the predicate with which theLazyFilterIndex
was initialized.Note: The performance of advancing a
LazyFilterIndex
depends on how sparsely the filtering predicate is satisfied, and may not offer the usual performance given by models ofCollection
.