Int

struct Int : FixedWidthInteger, SignedInteger

This extesion adds some useful functions to Int.

  • Gets the individual numbers, and puts them into an array. All negative numbers will start with 0.

    Declaration

    Swift

    var array: [Int] { get }