minor cleanups
This commit is contained in:
parent
02c84983a4
commit
294acffb89
|
@ -212,9 +212,9 @@ module FnDefinition = {
|
|||
}
|
||||
|
||||
let make = (~name, ~inputs, ~run, ()): t => {
|
||||
name: name,
|
||||
inputs: inputs,
|
||||
run: run,
|
||||
name,
|
||||
inputs,
|
||||
run,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -240,14 +240,14 @@ module Function = {
|
|||
~isExperimental=false,
|
||||
(),
|
||||
): t => {
|
||||
name: name,
|
||||
nameSpace: nameSpace,
|
||||
definitions: definitions,
|
||||
output: output,
|
||||
name,
|
||||
nameSpace,
|
||||
definitions,
|
||||
output,
|
||||
examples: examples |> E.O.default([]),
|
||||
isExperimental: isExperimental,
|
||||
requiresNamespace: requiresNamespace,
|
||||
description: description,
|
||||
isExperimental,
|
||||
requiresNamespace,
|
||||
description,
|
||||
}
|
||||
|
||||
let toJson = (t: t): functionJson => {
|
||||
|
|
|
@ -393,8 +393,6 @@ let library = E.A.concatMany([
|
|||
makeProxyFn("truncateLeft", [FRTypeDist, FRTypeNumber]),
|
||||
makeProxyFn("truncateRight", [FRTypeDist, FRTypeNumber]),
|
||||
makeProxyFn("truncate", [FRTypeDist, FRTypeNumber, FRTypeNumber]),
|
||||
// // FIXME - impossible to implement with FR!!!
|
||||
// | ("mx" | "mixture", args) => Helpers.mixture(args, ~env)->Some
|
||||
makeProxyFn("log", [FRTypeDist]),
|
||||
makeProxyFn("log10", [FRTypeDist]),
|
||||
makeProxyFn("unaryMinus", [FRTypeDist]),
|
||||
|
|
|
@ -5,7 +5,6 @@ type rec value =
|
|||
| IEvArray(arrayValue)
|
||||
| IEvArrayString(array<string>)
|
||||
| IEvBool(bool)
|
||||
// | IEvCall(string) // External function call
|
||||
| IEvDate(Js.Date.t)
|
||||
| IEvDeclaration(lambdaDeclaration)
|
||||
| IEvDistribution(DistributionTypes.genericDist)
|
||||
|
@ -14,7 +13,6 @@ type rec value =
|
|||
| IEvNumber(float)
|
||||
| IEvRecord(map)
|
||||
| IEvString(string)
|
||||
// | IEvSymbol(string)
|
||||
| IEvTimeDuration(float)
|
||||
| IEvType(map)
|
||||
| IEvTypeIdentifier(string)
|
||||
|
@ -26,7 +24,6 @@ and lambdaBody = (array<value>, environment, reducerFn) => value
|
|||
@genType.opaque
|
||||
and lambdaValue = {
|
||||
parameters: array<string>,
|
||||
// context: nameSpace,
|
||||
body: (array<value>, environment, reducerFn) => value,
|
||||
}
|
||||
@genType.opaque and lambdaDeclaration = Declaration.declaration<lambdaValue>
|
||||
|
|
Loading…
Reference in New Issue
Block a user