ContextDefaults

public enum ContextDefaults

Global mutable defaults which will be used when initializing a Context

See also

Context
  • The default iterations that will be used for operations which consume a generator’s values

    See also

    Gen.forEach(iterations:context:)

    See also

    Gen.allSatisfy(iterations:context:)

    Declaration

    Swift

    public static var maxIterations: Int
  • The default maximum depth that a generator which rejects values can reach before failing

    See also

    Gen.filter(isIncluded:)

    See also

    Gen.unique()

    Declaration

    Swift

    public static var maxDepth: Int
  • Stores a factory capable of creating the Context which will be used by default

    Declaration

    Swift

    private(set) public static var defaultContextFactory: () -> Context { get }
  • Registers a function capable of creating the Context which will be used by default

    Declaration

    Swift

    public static func registerDefaultContext(_ factory: @escaping () -> Context)