Minor fixes

This commit is contained in:
Ozzie Gooen 2020-07-31 09:28:45 +01:00
parent e1374ee69b
commit d79c4baa9d
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ module ExpressionTree = {
type t = environment
let empty:t = [||]->Belt.Map.String.fromArray
let update = (t,str, fn) => Belt.Map.String.update(t, str, fn)
let get = (t,str) => Belt.Map.String.get(t, str)
let get = (t:t,str) => Belt.Map.String.get(t, str)
}
type evaluationParams = {

View File

@ -127,7 +127,7 @@ module Internals = {
let inputsToShape = (inputs: inputs) => {
MathJsParser.fromString(inputs.guesstimatorString, inputs.environment)
|> E.R.bind(_, g => runProgram(inputs, g))
|> E.R.bind(_, r => E.A.last(r) |> E.O.toResult("sdf"));
|> E.R.bind(_, r => E.A.last(r) |> E.O.toResult("No rendered lines"));
};
let outputToDistPlus = (inputs: Inputs.inputs, shape: DistTypes.shape) => {