Global Variables

The following global variables are available globally.

  • A failure Result returning error The default error is an empty one so that failure() is legal To assign this to a variable, you must explicitly give a type. Otherwise the compiler has no idea what T is. This form is preferred to Result.Failure(error) because it provides a useful default. For example: let fail: Result = failure()

    Dictionary keys for default errors

    Declaration

    Swift

    public let ErrorFileKey = "LMErrorFile"
  • Undocumented