Functions

The following functions are available globally.

  • If an optional is contained in any Any value, this function “lifts” the non-optional value out of it.

    Note

    May no longer be useful as of Swift 3.

    Declaration

    Swift

    public func liftOptionalFromAny(_ value: Any) -> Any
  • Undocumented

    Declaration

    Swift

    public func truthy<T>(_ item: T) -> Bool
  • Undocumented

    Declaration

    Swift

    public func all(_ elements: [Any?], test: ((Any?) -> Bool) = truthy) -> Bool
  • Undocumented

    Declaration

    Swift

    public func any(_ elements: [Any?], test: ((Any?) -> Bool) = truthy) -> Bool
  • Undocumented

    Declaration

    Swift

    public func all<T>(_ elements: [T?], test: ((Any?) -> Bool)? = nil) -> Bool
  • Undocumented

    Declaration

    Swift

    public func any<T>(_ elements: [T?], test: ((Any?) -> Bool) = truthy) -> Bool