NSArray<ObjectType> Extension

Location

  • Reference: libSilver.fx
  • Namespace: Swift
  • Extends: NSArray<ObjectType>
  • Platforms: Toffee

 

contains

 

func contains(_ item: ObjectType) -> Bool

Parameters:

  • item:

count

 

func count(where countElement: (ObjectType, NSError) -> Bool!, error $error: NSError) -> Int!

Parameters:

  • countElement:
  • $error:

dropFirst

 

func dropFirst() -> INSFastEnumeration<not nullable ObjectType>

dropFirst (not nullable Int): not nullable INSFastEnumeration<not nullable ObjectType>

 

func dropFirst(_ n: Int) -> INSFastEnumeration<not nullable ObjectType>

Parameters:

  • n:

dropLast

 

func dropLast() -> INSFastEnumeration<not nullable ObjectType>

dropLast (not nullable Int): not nullable INSFastEnumeration<not nullable ObjectType>

 

func dropLast(_ n: Int) -> INSFastEnumeration<not nullable ObjectType>

Parameters:

  • n:

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 ObjectType)>
// Toffee-watchOS
func enumerated() -> INSFastEnumeration<not nullable (not nullable nullable Int32, not nullable ObjectType)>

filter

 

func filter(_ includeElement: (ObjectType, NSError) -> Bool!, error $error: NSError) -> INSFastEnumeration<not nullable ObjectType>

Parameters:

  • includeElement:
  • $error:

first

 

var first: ObjectType? { get{} }

flatten

 

func flatten() -> INSFastEnumeration<not nullable ObjectType>

forEach

 

func forEach(body: (ObjectType, NSError) -> Boolean, error $error: NSError) -> Boolean

Parameters:

  • body:
  • $error:

generate

 

func generate() -> INSFastEnumeration<not nullable ObjectType>

indexOf

 

func indexOf(_ predicate: (ObjectType) -> Bool) -> Int?

Parameters:

  • predicate:

isEmpty

 

var isEmpty: Bool { get{} }

joined

 

func joined(separator: ObjectType...) -> INSFastEnumeration<not nullable ObjectType>

Parameters:

  • separator:

lazy

 

var lazy: INSFastEnumeration<not nullable ObjectType> { get{} }

map<U>

 

func map<U>(_ transform: (ObjectType) -> U) -> INSFastEnumeration<not nullable U>

Parameters:

  • transform:

maxElement

 

func maxElement(_ isOrderedBefore: (ObjectType, ObjectType) -> Bool) -> ObjectType?

Parameters:

  • isOrderedBefore:

minElement

 

func minElement(_ isOrderedBefore: (ObjectType, ObjectType) -> Bool) -> ObjectType?

Parameters:

  • isOrderedBefore:

prefix

 

func prefix(_ maxLength: Int) -> INSFastEnumeration<not nullable ObjectType>

Parameters:

  • maxLength:

reduce<U>

 

func reduce<U>(_ initial: U, _ combine: (U, ObjectType) -> U) -> U

Parameters:

  • initial:
  • combine:

reverse

 

func reverse() -> INSFastEnumeration<not nullable ObjectType>

sorted

 

func sorted(by isOrderedBefore: (ObjectType, ObjectType) -> Bool) -> INSFastEnumeration<not nullable ObjectType>

Parameters:

  • isOrderedBefore:

startsWith

 

func startsWith(prefix p: INSFastEnumeration<not nullable ObjectType>) -> Bool

Parameters:

  • p:

suffix

 

func suffix(_ maxLength: Int) -> INSFastEnumeration<not nullable ObjectType>

Parameters:

  • maxLength:

toSwiftArray

 

func toSwiftArray() -> Array<not nullable ObjectType>

ToSwiftArray

 

func ToSwiftArray() -> Array<not nullable ObjectType>

ToSwiftArray<U>

 

func ToSwiftArray<U>() -> Array<not nullable U>

underestimateCount

 

func underestimateCount() -> Int

 

first

 

var first: ObjectType? { get{} }

isEmpty

 

var isEmpty: Bool { get{} }

lazy

 

var lazy: INSFastEnumeration<not nullable ObjectType> { get{} }

 

contains

 

func contains(_ item: ObjectType) -> Bool

Parameters:

  • item:

count

 

func count(where countElement: (ObjectType, NSError) -> Bool!, error $error: NSError) -> Int!

Parameters:

  • countElement:
  • $error:

dropFirst

 

func dropFirst() -> INSFastEnumeration<not nullable ObjectType>

dropFirst (not nullable Int): not nullable INSFastEnumeration<not nullable ObjectType>

 

func dropFirst(_ n: Int) -> INSFastEnumeration<not nullable ObjectType>

Parameters:

  • n:

dropLast

 

func dropLast() -> INSFastEnumeration<not nullable ObjectType>

dropLast (not nullable Int): not nullable INSFastEnumeration<not nullable ObjectType>

 

func dropLast(_ n: Int) -> INSFastEnumeration<not nullable ObjectType>

Parameters:

  • n:

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 ObjectType)>
// Toffee-watchOS
func enumerated() -> INSFastEnumeration<not nullable (not nullable nullable Int32, not nullable ObjectType)>

filter

 

func filter(_ includeElement: (ObjectType, NSError) -> Bool!, error $error: NSError) -> INSFastEnumeration<not nullable ObjectType>

Parameters:

  • includeElement:
  • $error:

flatten

 

func flatten() -> INSFastEnumeration<not nullable ObjectType>

forEach

 

func forEach(body: (ObjectType, NSError) -> Boolean, error $error: NSError) -> Boolean

Parameters:

  • body:
  • $error:

generate

 

func generate() -> INSFastEnumeration<not nullable ObjectType>

indexOf

 

func indexOf(_ predicate: (ObjectType) -> Bool) -> Int?

Parameters:

  • predicate:

joined

 

func joined(separator: ObjectType...) -> INSFastEnumeration<not nullable ObjectType>

Parameters:

  • separator:

map<U>

 

func map<U>(_ transform: (ObjectType) -> U) -> INSFastEnumeration<not nullable U>

Parameters:

  • transform:

maxElement

 

func maxElement(_ isOrderedBefore: (ObjectType, ObjectType) -> Bool) -> ObjectType?

Parameters:

  • isOrderedBefore:

minElement

 

func minElement(_ isOrderedBefore: (ObjectType, ObjectType) -> Bool) -> ObjectType?

Parameters:

  • isOrderedBefore:

prefix

 

func prefix(_ maxLength: Int) -> INSFastEnumeration<not nullable ObjectType>

Parameters:

  • maxLength:

reduce<U>

 

func reduce<U>(_ initial: U, _ combine: (U, ObjectType) -> U) -> U

Parameters:

  • initial:
  • combine:

reverse

 

func reverse() -> INSFastEnumeration<not nullable ObjectType>

sorted

 

func sorted(by isOrderedBefore: (ObjectType, ObjectType) -> Bool) -> INSFastEnumeration<not nullable ObjectType>

Parameters:

  • isOrderedBefore:

startsWith

 

func startsWith(prefix p: INSFastEnumeration<not nullable ObjectType>) -> Bool

Parameters:

  • p:

suffix

 

func suffix(_ maxLength: Int) -> INSFastEnumeration<not nullable ObjectType>

Parameters:

  • maxLength:

toSwiftArray

 

func toSwiftArray() -> Array<not nullable ObjectType>

ToSwiftArray

 

func ToSwiftArray() -> Array<not nullable ObjectType>

ToSwiftArray<U>

 

func ToSwiftArray<U>() -> Array<not nullable U>

underestimateCount

 

func underestimateCount() -> Int