Scientist

public struct Scientist<T> where T : Equatable

Scientist provides interface to run experiment. You have to specify return type which is Equatable.

  • Undocumented

    Declaration

    Swift

    public init()
  • Undocumented

    Declaration

    Swift

    public init(with context: [String : Any]? = nil)
  • conduct science.

    Declaration

    Swift

    public func science(name: String = "", options: [String : Any] = [:], _ process: (Experiment<T>) -> Void) throws -> T

    Parameters

    name

    name of experiment

    options

    options for running experiment

    process

    your experiment process

    Return Value

    Generic Type which conforms to Equatable

  • run experiment excplicitly.

    Declaration

    Swift

    public static func run(name: String = "", options: [String : Any] = [:], _ process: (Experiment<T>) -> Void) throws -> T

    Parameters

    name

    name of experiment

    options

    options for running experiment

    process

    your experiment process

    Return Value

    Generic Type which conforms to Equatable