fix toString

This commit is contained in:
Umur Ozkul 2022-08-27 19:39:13 +02:00
parent 7b4e38a983
commit 934144fce8

View File

@ -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}'`