This commit is contained in:
Ozzie Gooen 2022-07-16 20:33:15 -07:00
parent c5447b8d7a
commit b502e21a0f
3 changed files with 4 additions and 3 deletions

View File

@ -430,7 +430,8 @@ module Registry = {
let toJson = (r: registry) => r->E.A2.fmap(Function.toJson)
let allExamples = (r: registry) => r->E.A2.fmap(r => r.examples)->E.A.concatMany
let allExamplesWithFns = (r: registry) => r->E.A2.fmap(fn => (fn.examples->E.A2.fmap(example => (fn, example))))->E.A.concatMany
let allExamplesWithFns = (r: registry) =>
r->E.A2.fmap(fn => fn.examples->E.A2.fmap(example => (fn, example)))->E.A.concatMany
let _exportedSubset = (r: registry): registry => r |> E.A.filter(r => !r.requiresNamespace)

View File

@ -8,4 +8,4 @@ let registry = Belt.Array.concatMany([
FR_Scoring.library,
])
let dispatch = FunctionRegistry_Core.Registry.dispatch(registry)
let dispatch = FunctionRegistry_Core.Registry.dispatch(registry)

View File

@ -21,4 +21,4 @@ let mathBindings: Bindings.t =
//TODO: This should be in a different place.
let makeBindings = (previousBindings: Bindings.t): Bindings.t =>
previousBindings->Bindings.defineModule("Math", mathBindings)
previousBindings->Bindings.defineModule("Math", mathBindings)