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

31 lines
834 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)
| Float(float)
| String(string)
| GenDistError(GenericDist_Types.error)
2022-03-28 12:39:07 +00:00
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
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>
}