From 3d7c374c232970ea36345af44f457eb6cb6dc8e6 Mon Sep 17 00:00:00 2001 From: Ozzie Gooen Date: Thu, 12 Oct 2023 08:38:45 -0700 Subject: [PATCH] Minor cleanup --- packages/squiggle-lang/src/library/index.ts | 2 +- packages/squiggle-lang/src/library/registry/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/squiggle-lang/src/library/index.ts b/packages/squiggle-lang/src/library/index.ts index 135a4e5fe6..02e85fde30 100644 --- a/packages/squiggle-lang/src/library/index.ts +++ b/packages/squiggle-lang/src/library/index.ts @@ -40,7 +40,7 @@ function makeStdLib(): Bindings { res = res.set(INDEX_LOOKUP_FUNCTION, vLambda(makeLookupLambda())); // some lambdas can't be expressed in function registry (e.g. `mx` with its variadic number of parameters) - for (const [name, lambda] of nonRegistryLambdas()) { + for (const [name, lambda] of nonRegistryLambdas) { res = res.set(name, vLambda(lambda)); } diff --git a/packages/squiggle-lang/src/library/registry/index.ts b/packages/squiggle-lang/src/library/registry/index.ts index 5779f5955e..449095b82a 100644 --- a/packages/squiggle-lang/src/library/registry/index.ts +++ b/packages/squiggle-lang/src/library/registry/index.ts @@ -52,7 +52,7 @@ const fnList: FRFunction[] = [ export const registry = Registry.make(fnList); -export const nonRegistryLambdas: () => [string, Lambda][] = () => [ +export const nonRegistryLambdas: [string, Lambda][] = [ ["mx", mxLambda()], ["mixture", mxLambda()], ];