squiggle/packages/squiggle-lang/src/rescript/GenericDist/GenericDist_GenericOperation.resi

28 lines
833 B
Plaintext
Raw Normal View History

2022-03-28 12:39:07 +00:00
type params = {
sampleCount: int,
xyPointLength: int,
}
type outputType = [
| #Dist(GenericDist_Types.genericDist)
2022-03-30 01:28:14 +00:00
| #GenDistError(GenericDist_Types.error)
2022-03-28 12:39:07 +00:00
| #Float(float)
| #String(string)
]
2022-03-30 01:28:14 +00:00
let run: (params, GenericDist_Types.Operation.genericFunctionCallInfo) => outputType
2022-03-28 19:14:39 +00:00
let runFromDist: (
params,
GenericDist_Types.Operation.fromDist,
GenericDist_Types.genericDist,
) => outputType
let runFromFloat: (params, GenericDist_Types.Operation.fromDist, float) => outputType
2022-03-31 12:41:50 +00:00
let outputMap: (params, outputType, GenericDist_Types.Operation.singleParamaterFunction) => outputType
2022-03-28 19:14:39 +00:00
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>
}