From c2720a573821562b816a11d75311613cf57541f9 Mon Sep 17 00:00:00 2001 From: "Jade (Rose) Rowland" Date: Mon, 12 Jan 2026 11:26:18 -0800 Subject: [PATCH] working --- packages/core/pattern.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/core/pattern.mjs b/packages/core/pattern.mjs index 58c83a6f..4cf30c78 100644 --- a/packages/core/pattern.mjs +++ b/packages/core/pattern.mjs @@ -26,6 +26,7 @@ import { } from './util.mjs'; import drawLine from './drawLine.mjs'; import { errorLogger, logger } from './logger.mjs'; +import { strudelScope } from './evaluate.mjs'; let stringParser; @@ -1683,7 +1684,9 @@ export function register(name, func, patternify = true, preserveSteps = false, j // toplevel functions get curried as well as patternified // because pfunc uses spread args, we need to state the arity explicitly! - return curry(pfunc, null, arity); + const curried = curry(pfunc, null, arity); + strudelScope[name] = pfunc; + return curried; } // Like register, but defaults to stepJoin