ISequence<T> Extension
Location
-
Reference:
- Silver.dll .NET, .NET Standard 2.0
- silver.jar Cooper
- Silver.fx Island
- libSilver.fx Toffee
- Namespace: Swift
- Extends: ISequence<T>
contains
method contains(item: not nullable T): not nullable Bool
Bool! contains(T! item)
func contains(_ item: T) -> Bool
Bool contains(T item)
Function contains(item As T) As Bool
Parameters:
- item:
count
property count: not nullable Int read;
Int! count { get; }
var count: Int { get{} }
Int count { __get; }
ReadOnly Property count() As Int
count where(not nullable Func<not nullable T, not nullable Bool>): not nullable Int .NET, .NET Standard 2.0, Cooper, Island
method count where(countElement: not nullable Func<not nullable T, not nullable Bool>): not nullable Int
Int! count where(Func<not nullable T, not nullable Bool>! countElement)
func count(where countElement: Func<not nullable T, not nullable Bool>) -> Int
Int count where(Func2<T, Boolean> countElement)
Function count where(countElement As Func (Of T, Bool)) As Int
Parameters:
- countElement:
count where(not nullable block(not nullable T, NSError): nullable Bool) error(NSError): nullable Int Toffee
func count(where countElement: (T, NSError) -> Bool!, error $error: NSError) -> Int!
Parameters:
- countElement:
- $error:
debugDescription .NET, .NET Standard 2.0, Cooper, Island
property debugDescription: not nullable String read;
String! debugDescription { get; }
var debugDescription: String { get{} }
String debugDescription { __get; }
ReadOnly Property debugDescription() As String
dropFirst
method dropFirst: not nullable IEnumerable<not nullable T>
IEnumerable<not nullable T>! dropFirst()
func dropFirst() -> INSFastEnumeration<not nullable T>
Iterable<T> dropFirst()
Function dropFirst() As IEnumerable<not nullable T>
dropFirst (not nullable Int): not nullable IEnumerable<not nullable T>
method dropFirst(n: not nullable Int): not nullable IEnumerable<not nullable T>
IEnumerable<not nullable T>! dropFirst(Int! n)
func dropFirst(_ n: Int) -> INSFastEnumeration<not nullable T>
Iterable<T> dropFirst(Int n)
Function dropFirst(n As Int) As IEnumerable<not nullable T>
Parameters:
- n:
dropLast
method dropLast: not nullable IEnumerable<not nullable T>
IEnumerable<not nullable T>! dropLast()
func dropLast() -> INSFastEnumeration<not nullable T>
Iterable<T> dropLast()
Function dropLast() As IEnumerable<not nullable T>
dropLast (not nullable Int): not nullable IEnumerable<not nullable T>
method dropLast(n: not nullable Int): not nullable IEnumerable<not nullable T>
IEnumerable<not nullable T>! dropLast(Int! n)
func dropLast(_ n: Int) -> INSFastEnumeration<not nullable T>
Iterable<T> dropLast(Int n)
Function dropLast(n As Int) As IEnumerable<not nullable T>
Parameters:
- n:
enumerated
method enumerated: not nullable IEnumerable<not nullable tuple of (not nullable Int, not nullable T)>
IEnumerable<not nullable tuple of (not nullable Int, not nullable T)>! enumerated()
// Toffee-iOS, Toffee-iOS Simulator, Toffee-Mac Catalyst, Toffee-macOS, Toffee-tvOS, Toffee-tvOS Simulator, Toffee-watchOS Simulator
func enumerated() -> INSFastEnumeration<not nullable (not nullable nullable Int64, not nullable T)>
// Toffee-watchOS
func enumerated() -> INSFastEnumeration<not nullable (not nullable nullable Int32, not nullable T)>
Function enumerated() As IEnumerable<not nullable tuple of (not nullable Int, not nullable T)>
filter (not nullable Func<not nullable T, not nullable Bool>): not nullable IEnumerable<not nullable T> .NET, .NET Standard 2.0, Cooper, Island
method filter(includeElement: not nullable Func<not nullable T, not nullable Bool>): not nullable IEnumerable<not nullable T>
IEnumerable<not nullable T>! filter(Func<not nullable T, not nullable Bool>! includeElement)
func filter(_ includeElement: Func<not nullable T, not nullable Bool>) -> IEnumerable<not nullable T>
Function filter(includeElement As Func (Of T, Bool)) As IEnumerable<not nullable T>
Parameters:
- includeElement:
filter (not nullable block(not nullable T, NSError): nullable Bool) error(NSError): not nullable INSFastEnumeration<not nullable T> Toffee
func filter(_ includeElement: (T, NSError) -> Bool!, error $error: NSError) -> INSFastEnumeration<not nullable T>
Parameters:
- includeElement:
- $error:
first
property first: nullable T read;
T? first { get; }
var first: T? { get{} }
T first { __get; }
ReadOnly Property first() As T?
flatten
method flatten: not nullable IEnumerable<not nullable T>
IEnumerable<not nullable T>! flatten()
func flatten() -> INSFastEnumeration<not nullable T>
Iterable<T> flatten()
Function flatten() As IEnumerable<not nullable T>
forEach body(not nullable Action<not nullable T>) .NET, .NET Standard 2.0, Cooper, Island
method forEach body(body: not nullable Action<not nullable T>)
void forEach body(Action<not nullable T>! body)
func forEach(body: Action<not nullable T>)
void forEach body(Action1<T> body)
Sub forEach body(body As Action (Of T))
Parameters:
- body:
Parameters:
- body:
- $error:
generate
method generate: not nullable IEnumerable<not nullable T>
IEnumerable<not nullable T>! generate()
func generate() -> INSFastEnumeration<not nullable T>
Iterable<T> generate()
Function generate() As IEnumerable<not nullable T>
indexOf
method indexOf(predicate: not nullable Func<not nullable T, not nullable Bool>): nullable Int
Int? indexOf(Func<not nullable T, not nullable Bool>! predicate)
func indexOf(_ predicate: (T) -> Bool) -> Int?
Function indexOf(predicate As Func (Of T, Bool)) As Int?
Parameters:
- predicate:
isEmpty
property isEmpty: not nullable Bool read;
Bool! isEmpty { get; }
var isEmpty: Bool { get{} }
Bool isEmpty { __get; }
ReadOnly Property isEmpty() As Bool
joined
method joined separator(separator: not nullable array of not nullable T): not nullable IEnumerable<not nullable T>
IEnumerable<not nullable T>! joined separator(T![]! separator)
func joined(separator: T...) -> INSFastEnumeration<not nullable T>
Iterable<T> joined separator(T[] separator)
Function joined separator(separator As T()) As IEnumerable<not nullable T>
Parameters:
- separator:
lazy
property lazy: not nullable IEnumerable<not nullable T> read;
IEnumerable<not nullable T>! lazy { get; }
// .NET, .NET Standard 2.0, Island
var lazy: IEnumerable<not nullable T> { get{} }
// Toffee
var lazy: INSFastEnumeration<not nullable T> { get{} }
Iterable<T> lazy { __get; }
ReadOnly Property lazy() As IEnumerable<not nullable T>
map<U>
method map<U>(transform: not nullable Func<not nullable T, not nullable U>): not nullable IEnumerable<not nullable U>
IEnumerable<not nullable U>! map<U>(Func<not nullable T, not nullable U>! transform)
func map<U>(_ transform: (T) -> U) -> INSFastEnumeration<not nullable U>
Iterable<U> map<U>(Func2<T, U> transform)
Function map<U>(transform As Func (Of T, U)) As IEnumerable<not nullable U>
Parameters:
- transform:
maxElement
method maxElement(isOrderedBefore: not nullable Func<not nullable T, not nullable T, not nullable Bool>): nullable T
T? maxElement(Func<not nullable T, not nullable T, not nullable Bool>! isOrderedBefore)
func maxElement(_ isOrderedBefore: (T, T) -> Bool) -> T?
T maxElement(Func3<T, T, Boolean> isOrderedBefore)
Function maxElement(isOrderedBefore As Func (Of T, T, Bool)) As T?
Parameters:
- isOrderedBefore:
minElement
method minElement(isOrderedBefore: not nullable Func<not nullable T, not nullable T, not nullable Bool>): nullable T
T? minElement(Func<not nullable T, not nullable T, not nullable Bool>! isOrderedBefore)
func minElement(_ isOrderedBefore: (T, T) -> Bool) -> T?
T minElement(Func3<T, T, Boolean> isOrderedBefore)
Function minElement(isOrderedBefore As Func (Of T, T, Bool)) As T?
Parameters:
- isOrderedBefore:
prefix
method prefix(maxLength: not nullable Int): not nullable IEnumerable<not nullable T>
IEnumerable<not nullable T>! prefix(Int! maxLength)
func prefix(_ maxLength: Int) -> INSFastEnumeration<not nullable T>
Iterable<T> prefix(Int maxLength)
Function prefix(maxLength As Int) As IEnumerable<not nullable T>
Parameters:
- maxLength:
reduce<U>
method reduce<U>(initial: not nullable U; combine: not nullable Func<not nullable U, not nullable T, not nullable U>): not nullable U
U! reduce<U>(U! initial, Func<not nullable U, not nullable T, not nullable U>! combine)
func reduce<U>(_ initial: U, _ combine: (U, T) -> U) -> U
U reduce<U>(U initial, Func3<U, T, U> combine)
Function reduce<U>(initial As U, combine As Func (Of U, T, U)) As U
Parameters:
- initial:
- combine:
reverse
method reverse: not nullable IEnumerable<not nullable T>
IEnumerable<not nullable T>! reverse()
func reverse() -> INSFastEnumeration<not nullable T>
Iterable<T> reverse()
Function reverse() As IEnumerable<not nullable T>
sorted
method sorted by(isOrderedBefore: not nullable Func<not nullable T, not nullable T, not nullable Bool>): not nullable IEnumerable<not nullable T>
IEnumerable<not nullable T>! sorted by(Func<not nullable T, not nullable T, not nullable Bool>! isOrderedBefore)
func sorted(by isOrderedBefore: (T, T) -> Bool) -> INSFastEnumeration<not nullable T>
Function sorted by(isOrderedBefore As Func (Of T, T, Bool)) As IEnumerable<not nullable T>
Parameters:
- isOrderedBefore:
startsWith
method startsWith prefix(p: not nullable IEnumerable<not nullable T>): not nullable Bool
Bool! startsWith prefix(IEnumerable<not nullable T>! p)
func startsWith(prefix p: INSFastEnumeration<not nullable T>) -> Bool
Bool startsWith prefix(Iterable<T> p)
Function startsWith prefix(p As IEnumerable<not nullable T>) As Bool
Parameters:
- p:
suffix
method suffix(maxLength: not nullable Int): not nullable IEnumerable<not nullable T>
IEnumerable<not nullable T>! suffix(Int! maxLength)
func suffix(_ maxLength: Int) -> INSFastEnumeration<not nullable T>
Iterable<T> suffix(Int maxLength)
Function suffix(maxLength As Int) As IEnumerable<not nullable T>
Parameters:
- maxLength:
toSwiftArray
method toSwiftArray: not nullable Array<not nullable T>
Array<not nullable T>! toSwiftArray()
func toSwiftArray() -> Array<not nullable T>
Swift.Array<T> toSwiftArray()
Function toSwiftArray() As Array<not nullable T>
ToSwiftArray
method ToSwiftArray: not nullable Array<not nullable T>
Array<not nullable T>! ToSwiftArray()
func ToSwiftArray() -> Array<not nullable T>
Swift.Array<T> ToSwiftArray()
Function ToSwiftArray() As Array<not nullable T>
ToSwiftArray<U> .NET, .NET Standard 2.0, Island, Toffee
method ToSwiftArray<U>: not nullable Array<not nullable U>
Array<not nullable U>! ToSwiftArray<U>()
func ToSwiftArray<U>() -> Array<not nullable U>
Function ToSwiftArray<U>() As Array<not nullable U>
underestimateCount
method underestimateCount: not nullable Int
Int! underestimateCount()
func underestimateCount() -> Int
Int underestimateCount()
Function underestimateCount() As Int
count
property count: not nullable Int read;
Int! count { get; }
var count: Int { get{} }
Int count { __get; }
ReadOnly Property count() As Int
debugDescription .NET, .NET Standard 2.0, Cooper, Island
property debugDescription: not nullable String read;
String! debugDescription { get; }
var debugDescription: String { get{} }
String debugDescription { __get; }
ReadOnly Property debugDescription() As String
first
property first: nullable T read;
T? first { get; }
var first: T? { get{} }
T first { __get; }
ReadOnly Property first() As T?
isEmpty
property isEmpty: not nullable Bool read;
Bool! isEmpty { get; }
var isEmpty: Bool { get{} }
Bool isEmpty { __get; }
ReadOnly Property isEmpty() As Bool
lazy
property lazy: not nullable IEnumerable<not nullable T> read;
IEnumerable<not nullable T>! lazy { get; }
// .NET, .NET Standard 2.0, Island
var lazy: IEnumerable<not nullable T> { get{} }
// Toffee
var lazy: INSFastEnumeration<not nullable T> { get{} }
Iterable<T> lazy { __get; }
ReadOnly Property lazy() As IEnumerable<not nullable T>
contains
method contains(item: not nullable T): not nullable Bool
Bool! contains(T! item)
func contains(_ item: T) -> Bool
Bool contains(T item)
Function contains(item As T) As Bool
Parameters:
- item:
count where(not nullable Func<not nullable T, not nullable Bool>): not nullable Int .NET, .NET Standard 2.0, Cooper, Island
method count where(countElement: not nullable Func<not nullable T, not nullable Bool>): not nullable Int
Int! count where(Func<not nullable T, not nullable Bool>! countElement)
func count(where countElement: Func<not nullable T, not nullable Bool>) -> Int
Int count where(Func2<T, Boolean> countElement)
Function count where(countElement As Func (Of T, Bool)) As Int
Parameters:
- countElement:
count where(not nullable block(not nullable T, NSError): nullable Bool) error(NSError): nullable Int Toffee
func count(where countElement: (T, NSError) -> Bool!, error $error: NSError) -> Int!
Parameters:
- countElement:
- $error:
dropFirst
method dropFirst: not nullable IEnumerable<not nullable T>
IEnumerable<not nullable T>! dropFirst()
func dropFirst() -> INSFastEnumeration<not nullable T>
Iterable<T> dropFirst()
Function dropFirst() As IEnumerable<not nullable T>
dropFirst (not nullable Int): not nullable IEnumerable<not nullable T>
method dropFirst(n: not nullable Int): not nullable IEnumerable<not nullable T>
IEnumerable<not nullable T>! dropFirst(Int! n)
func dropFirst(_ n: Int) -> INSFastEnumeration<not nullable T>
Iterable<T> dropFirst(Int n)
Function dropFirst(n As Int) As IEnumerable<not nullable T>
Parameters:
- n:
dropLast
method dropLast: not nullable IEnumerable<not nullable T>
IEnumerable<not nullable T>! dropLast()
func dropLast() -> INSFastEnumeration<not nullable T>
Iterable<T> dropLast()
Function dropLast() As IEnumerable<not nullable T>
dropLast (not nullable Int): not nullable IEnumerable<not nullable T>
method dropLast(n: not nullable Int): not nullable IEnumerable<not nullable T>
IEnumerable<not nullable T>! dropLast(Int! n)
func dropLast(_ n: Int) -> INSFastEnumeration<not nullable T>
Iterable<T> dropLast(Int n)
Function dropLast(n As Int) As IEnumerable<not nullable T>
Parameters:
- n:
enumerated
method enumerated: not nullable IEnumerable<not nullable tuple of (not nullable Int, not nullable T)>
IEnumerable<not nullable tuple of (not nullable Int, not nullable T)>! enumerated()
// Toffee-iOS, Toffee-iOS Simulator, Toffee-Mac Catalyst, Toffee-macOS, Toffee-tvOS, Toffee-tvOS Simulator, Toffee-watchOS Simulator
func enumerated() -> INSFastEnumeration<not nullable (not nullable nullable Int64, not nullable T)>
// Toffee-watchOS
func enumerated() -> INSFastEnumeration<not nullable (not nullable nullable Int32, not nullable T)>
Function enumerated() As IEnumerable<not nullable tuple of (not nullable Int, not nullable T)>
filter (not nullable Func<not nullable T, not nullable Bool>): not nullable IEnumerable<not nullable T> .NET, .NET Standard 2.0, Cooper, Island
method filter(includeElement: not nullable Func<not nullable T, not nullable Bool>): not nullable IEnumerable<not nullable T>
IEnumerable<not nullable T>! filter(Func<not nullable T, not nullable Bool>! includeElement)
func filter(_ includeElement: Func<not nullable T, not nullable Bool>) -> IEnumerable<not nullable T>
Function filter(includeElement As Func (Of T, Bool)) As IEnumerable<not nullable T>
Parameters:
- includeElement:
filter (not nullable block(not nullable T, NSError): nullable Bool) error(NSError): not nullable INSFastEnumeration<not nullable T> Toffee
func filter(_ includeElement: (T, NSError) -> Bool!, error $error: NSError) -> INSFastEnumeration<not nullable T>
Parameters:
- includeElement:
- $error:
flatten
method flatten: not nullable IEnumerable<not nullable T>
IEnumerable<not nullable T>! flatten()
func flatten() -> INSFastEnumeration<not nullable T>
Iterable<T> flatten()
Function flatten() As IEnumerable<not nullable T>
forEach body(not nullable Action<not nullable T>) .NET, .NET Standard 2.0, Cooper, Island
method forEach body(body: not nullable Action<not nullable T>)
void forEach body(Action<not nullable T>! body)
func forEach(body: Action<not nullable T>)
void forEach body(Action1<T> body)
Sub forEach body(body As Action (Of T))
Parameters:
- body:
Parameters:
- body:
- $error:
generate
method generate: not nullable IEnumerable<not nullable T>
IEnumerable<not nullable T>! generate()
func generate() -> INSFastEnumeration<not nullable T>
Iterable<T> generate()
Function generate() As IEnumerable<not nullable T>
indexOf
method indexOf(predicate: not nullable Func<not nullable T, not nullable Bool>): nullable Int
Int? indexOf(Func<not nullable T, not nullable Bool>! predicate)
func indexOf(_ predicate: (T) -> Bool) -> Int?
Function indexOf(predicate As Func (Of T, Bool)) As Int?
Parameters:
- predicate:
joined
method joined separator(separator: not nullable array of not nullable T): not nullable IEnumerable<not nullable T>
IEnumerable<not nullable T>! joined separator(T![]! separator)
func joined(separator: T...) -> INSFastEnumeration<not nullable T>
Iterable<T> joined separator(T[] separator)
Function joined separator(separator As T()) As IEnumerable<not nullable T>
Parameters:
- separator:
map<U>
method map<U>(transform: not nullable Func<not nullable T, not nullable U>): not nullable IEnumerable<not nullable U>
IEnumerable<not nullable U>! map<U>(Func<not nullable T, not nullable U>! transform)
func map<U>(_ transform: (T) -> U) -> INSFastEnumeration<not nullable U>
Iterable<U> map<U>(Func2<T, U> transform)
Function map<U>(transform As Func (Of T, U)) As IEnumerable<not nullable U>
Parameters:
- transform:
maxElement
method maxElement(isOrderedBefore: not nullable Func<not nullable T, not nullable T, not nullable Bool>): nullable T
T? maxElement(Func<not nullable T, not nullable T, not nullable Bool>! isOrderedBefore)
func maxElement(_ isOrderedBefore: (T, T) -> Bool) -> T?
T maxElement(Func3<T, T, Boolean> isOrderedBefore)
Function maxElement(isOrderedBefore As Func (Of T, T, Bool)) As T?
Parameters:
- isOrderedBefore:
minElement
method minElement(isOrderedBefore: not nullable Func<not nullable T, not nullable T, not nullable Bool>): nullable T
T? minElement(Func<not nullable T, not nullable T, not nullable Bool>! isOrderedBefore)
func minElement(_ isOrderedBefore: (T, T) -> Bool) -> T?
T minElement(Func3<T, T, Boolean> isOrderedBefore)
Function minElement(isOrderedBefore As Func (Of T, T, Bool)) As T?
Parameters:
- isOrderedBefore:
prefix
method prefix(maxLength: not nullable Int): not nullable IEnumerable<not nullable T>
IEnumerable<not nullable T>! prefix(Int! maxLength)
func prefix(_ maxLength: Int) -> INSFastEnumeration<not nullable T>
Iterable<T> prefix(Int maxLength)
Function prefix(maxLength As Int) As IEnumerable<not nullable T>
Parameters:
- maxLength:
reduce<U>
method reduce<U>(initial: not nullable U; combine: not nullable Func<not nullable U, not nullable T, not nullable U>): not nullable U
U! reduce<U>(U! initial, Func<not nullable U, not nullable T, not nullable U>! combine)
func reduce<U>(_ initial: U, _ combine: (U, T) -> U) -> U
U reduce<U>(U initial, Func3<U, T, U> combine)
Function reduce<U>(initial As U, combine As Func (Of U, T, U)) As U
Parameters:
- initial:
- combine:
reverse
method reverse: not nullable IEnumerable<not nullable T>
IEnumerable<not nullable T>! reverse()
func reverse() -> INSFastEnumeration<not nullable T>
Iterable<T> reverse()
Function reverse() As IEnumerable<not nullable T>
sorted
method sorted by(isOrderedBefore: not nullable Func<not nullable T, not nullable T, not nullable Bool>): not nullable IEnumerable<not nullable T>
IEnumerable<not nullable T>! sorted by(Func<not nullable T, not nullable T, not nullable Bool>! isOrderedBefore)
func sorted(by isOrderedBefore: (T, T) -> Bool) -> INSFastEnumeration<not nullable T>
Function sorted by(isOrderedBefore As Func (Of T, T, Bool)) As IEnumerable<not nullable T>
Parameters:
- isOrderedBefore:
startsWith
method startsWith prefix(p: not nullable IEnumerable<not nullable T>): not nullable Bool
Bool! startsWith prefix(IEnumerable<not nullable T>! p)
func startsWith(prefix p: INSFastEnumeration<not nullable T>) -> Bool
Bool startsWith prefix(Iterable<T> p)
Function startsWith prefix(p As IEnumerable<not nullable T>) As Bool
Parameters:
- p:
suffix
method suffix(maxLength: not nullable Int): not nullable IEnumerable<not nullable T>
IEnumerable<not nullable T>! suffix(Int! maxLength)
func suffix(_ maxLength: Int) -> INSFastEnumeration<not nullable T>
Iterable<T> suffix(Int maxLength)
Function suffix(maxLength As Int) As IEnumerable<not nullable T>
Parameters:
- maxLength:
toSwiftArray
method toSwiftArray: not nullable Array<not nullable T>
Array<not nullable T>! toSwiftArray()
func toSwiftArray() -> Array<not nullable T>
Swift.Array<T> toSwiftArray()
Function toSwiftArray() As Array<not nullable T>
ToSwiftArray
method ToSwiftArray: not nullable Array<not nullable T>
Array<not nullable T>! ToSwiftArray()
func ToSwiftArray() -> Array<not nullable T>
Swift.Array<T> ToSwiftArray()
Function ToSwiftArray() As Array<not nullable T>
ToSwiftArray<U> .NET, .NET Standard 2.0, Island, Toffee
method ToSwiftArray<U>: not nullable Array<not nullable U>
Array<not nullable U>! ToSwiftArray<U>()
func ToSwiftArray<U>() -> Array<not nullable U>
Function ToSwiftArray<U>() As Array<not nullable U>
underestimateCount
method underestimateCount: not nullable Int
Int! underestimateCount()
func underestimateCount() -> Int
Int underestimateCount()
Function underestimateCount() As Int