For AI agents: visit https://swiftly.readme.io/llms.txt for an index of all pages formatted in Markdown and endpoints in OpenAPI.
Jump to Content
SwiftlyExtSwiftlyExt
API Reference
v1.0

Fork us on GithubSwiftlyExt
API Reference
Fork us on Github
v1.0

Array

  • Instance Methods
    • chunk
    • concat
    • difference
    • differenceBy
    • differenceWith
    • drop
    • dropRight
    • dropRightWhile
    • dropWhile
    • findIndex
    • findLastIndex
    • intersection
    • intersectionBy
    • intersectionWith
    • slice

Date

  • Instance Methods
    • isAfter
    • isBefore
    • toString
    • toString
  • Properties
    • era
    • year
    • month
    • day
    • minute
    • second
    • nanosecond
    • weekday
    • weekdayOrdinal
    • quarter
    • weekOfMonth
    • weekOfYear

Int

  • digits
  • downTo
  • factorial
  • isEven
  • isIn
  • isOdd
  • times
  • upTo

String

  • date
Powered by 
  1. Int

digits

digits() -> [Int]

Convert current int to array of Int

Returns

An array of digits

1234.digits()
// -> [1,2,3,4]

Updated less than a minute ago


Updated less than a minute ago