From 934144fce8956f3eb7e54ddf51559c2fa94f85bb Mon Sep 17 00:00:00 2001 From: Umur Ozkul Date: Sat, 27 Aug 2022 19:39:13 +0200 Subject: [PATCH] fix toString --- .../ReducerInterface_InternalExpressionValue.res | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/squiggle-lang/src/rescript/ReducerInterface/ReducerInterface_InternalExpressionValue.res b/packages/squiggle-lang/src/rescript/ReducerInterface/ReducerInterface_InternalExpressionValue.res index 45abee4e..a31b0350 100644 --- a/packages/squiggle-lang/src/rescript/ReducerInterface/ReducerInterface_InternalExpressionValue.res +++ b/packages/squiggle-lang/src/rescript/ReducerInterface/ReducerInterface_InternalExpressionValue.res @@ -72,6 +72,7 @@ and toStringDate = (date) => DateTime.Date.toString(date) and toStringDeclaration = (d) => Declaration.toString(d, r => toString(IEvLambda(r))) and toStringDistribution = (dist) => GenericDist.toString(dist) and toStringLambda = (lambdaValue) => `lambda(${Js.Array2.toString(lambdaValue.parameters)}=>internal code)` +and toStringFunction = (lambdaValue) => `function(${Js.Array2.toString(lambdaValue.parameters)})` and toStringNumber = (aNumber) => Js.String.make(aNumber) and toStringRecord = (aMap) => aMap->toStringMap and toStringString = (aString) => `'${aString}'`