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 toJson = (r: registry) => r->E.A2.fmap(Function.toJson)
let allExamples = (r: registry) => r->E.A2.fmap(r => r.examples)->E.A.concatMany 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) let _exportedSubset = (r: registry): registry => r |> E.A.filter(r => !r.requiresNamespace)