Array

extension Array where Element == Float
extension Array where Element == Foundation.NSObject.Type

Available where Element == Float

  • Returns the index and value of the largest number in the array.

    Declaration

    Swift

    public func argmax() -> (Int, Float)

Available where Element == Foundation.NSObject.Type

  • Assert that each element, in order, of this array and the other array are the same type

    Declaration

    Swift

    public func areSameOrderedType(other: [Any]) -> Bool

    Parameters

    other

    The array of instances to check types against

    Return Value

    True if both arrays contain elements of the same type, in order.