diff --git a/packages/core/util.mjs b/packages/core/util.mjs index 2de7a8e6..5ec88125 100644 --- a/packages/core/util.mjs +++ b/packages/core/util.mjs @@ -60,6 +60,7 @@ export const removeUndefineds = (xs) => xs.filter((x) => x != undefined); export const flatten = (arr) => [].concat(...arr); export const id = (a) => a; +export const constant = (a, b) => a; export const listRange = (min, max) => Array.from({ length: max - min + 1 }, (_, i) => i + min);