squiggle/packages/squiggle-lang/src/rescript/GenericDist/GenericDist_GenericOperation.resi
2022-03-28 15:14:39 -04:00

28 lines
817 B
Plaintext

type params = {
sampleCount: int,
xyPointLength: int,
}
type outputType = [
| #Dist(GenericDist_Types.genericDist)
| #Error(GenericDist_Types.error)
| #Float(float)
| #String(string)
]
let run: (params, GenericDist_Types.Operation.genericFunctionCall) => outputType
let runFromDist: (
params,
GenericDist_Types.Operation.fromDist,
GenericDist_Types.genericDist,
) => outputType
let runFromFloat: (params, GenericDist_Types.Operation.fromDist, float) => outputType
let fmap: (params, GenericDist_Types.Operation.singleParamaterFunction, outputType) => outputType
module Output: {
let toDist: outputType => option<GenericDist_Types.genericDist>
let toFloat: outputType => option<float>
let toString: outputType => option<string>
let toError: outputType => option<GenericDist_Types.error>
}