mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 21:58:37 +00:00
Apply all function to individual patterns rather than final stack (#1209)
This commit is contained in:
parent
726abf76ce
commit
ef53367ba9
@ -152,9 +152,12 @@ export function repl({
|
||||
shouldHush && hush();
|
||||
let { pattern, meta } = await _evaluate(code, transpiler, transpilerOptions);
|
||||
if (Object.keys(pPatterns).length) {
|
||||
pattern = stack(...Object.values(pPatterns));
|
||||
}
|
||||
if (allTransform) {
|
||||
let patterns = Object.values(pPatterns);
|
||||
if (allTransform) {
|
||||
patterns = patterns.map(allTransform);
|
||||
}
|
||||
pattern = stack(...patterns);
|
||||
} else if (allTransform) {
|
||||
pattern = allTransform(pattern);
|
||||
}
|
||||
if (!isPattern(pattern)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user